fix: abort docker compose when OSS_JWT_SECRET is unset (#356)

Using :-ChangeMeInProduction silently starts the stack with a known
public signing key. Switch to :? so docker compose up exits with a
clear error when the variable is not provided.
This commit is contained in:
nuthalapativarun 2026-05-27 04:21:20 -07:00 committed by GitHub
parent 9e12d96ebb
commit 7eecadd8d6
No known key found for this signature in database
GPG key ID: B5690EEEBB952194

View file

@ -173,7 +173,7 @@ services:
TURN_SECRET: "${TURN_SECRET:-}"
FORCE_TURN_RELAY: "${FORCE_TURN_RELAY:-false}"
OSS_JWT_SECRET: "${OSS_JWT_SECRET:-ChangeMeInProduction}"
OSS_JWT_SECRET: "${OSS_JWT_SECRET:?OSS_JWT_SECRET must be set to a strong secret}"
# Telemetry
ENABLE_TELEMETRY: "${ENABLE_TELEMETRY:-true}"