if i am setting up a livekit server in production ...
# ask-ai
e
if i am setting up a livekit server in production on aws ecs, and i want to use an environment variable for the configuration, what do i call that environment variable? do i call it LIVEKIT_CONFIG_BODY, or LIVEKIT_CONFIG, or something else?
t
Thanks for reaching out, Jason. I'm an AI assistant and I'm here to help. Give me a moment while I research this topic.
Thanks for reaching out! To make sure I guide you in the best way possible, could you please let me know if you're deploying a self-hosted LiveKit server on AWS ECS or if you're using LiveKit Cloud? Also, are you looking for assistance with securely injecting these variables using AWS Secrets Manager or Parameter Store? I'm here to help you through this! Sources: .env.example | .env.example | Development Environment Setup | livekit/livekit_composite | DeepWiki | Agent Deployment & Docker Configuration | livekit/livekit_composite | DeepW... | .env.example
e
self hosted on AWS ECS. just want to know what to call the variable. i will store the contents of it in the secrets manager.
t
Thanks for reaching out! It seems that the sources don’t mention a specific environment variable for passing the full configuration file in YAML or JSON format for a self-hosted LiveKit server on AWS ECS. But don’t worry—there are some standard environment variables you’ll want to use for your LiveKit server configuration: • `LIVEKIT_URL`: This is your WebSocket endpoint for the LiveKit server. •
LIVEKIT_API_KEY
and `LIVEKIT_API_SECRET`: These help keep your server securely authenticated. If your goal is to pass the entire configuration file, a helpful approach might be to create a custom environment variable (like
LIVEKIT_CONFIG
) and make sure your server is set up to read from it. A great way to keep this secure is by storing it in AWS Secrets Manager and then injecting it into your ECS task definition. I hope this helps you move forward smoothly—feel free to ask if you need any more guidance! Sources: Self-hosting the Egress Service | LiveKit Docs | Development Environment Setup | livekit/livekit_composite | DeepWiki | Video Conferencing Applications | livekit/livekit_composite | DeepWiki | SIP Integration | livekit/livekit_composite | DeepWiki | Making calls using SIP | LiveKit Docs