From ce960ae3302db2415dd2a9a54d3721db33c00658 Mon Sep 17 00:00:00 2001 From: Andrew Hunter Date: Tue, 27 Jan 2026 14:32:25 -0500 Subject: [PATCH] :memo: (doc) Add key gen example Add a API key generation example using OpenSSL. --- docs/installation/compose.md | 10 ++++++++++ 1 file changed, 10 insertions(+) diff --git a/docs/installation/compose.md b/docs/installation/compose.md index d4556490..5cb340cb 100644 --- a/docs/installation/compose.md +++ b/docs/installation/compose.md @@ -87,6 +87,11 @@ If you are using an external service, you need to set `REDIS_URL` environment va Generate a secure key for `LIVEKIT_API_SECRET` in `env.d/common`. +For example, using OpenSSL: +```shell +openssl rand -base64 32 +``` + We provide a minimal recommanded config for production environment in `livekit-server.yaml`. Set the previously generated API secret key in the config file. To view other customization options, see [config-sample.yaml](https://github.com/livekit/livekit/blob/master/config-sample.yaml) @@ -100,6 +105,11 @@ The Meet backend is built on the Django Framework. Generate a [secure key](https://docs.djangoproject.com/en/5.2/ref/settings/#secret-key.) for `DJANGO_SECRET_KEY` in `env.d/common`. +Best not to re-use the secret key from the LiveKit API: +```shell +openssl rand -base64 32 +``` + ### Mail The following environment variables are required in `env.d/common` for the mail service to send invitations :