From 5921d5dcd3c88c3b9cbbb841b1d7a732eab4ce65 Mon Sep 17 00:00:00 2001 From: 3x3cut0r Date: Wed, 22 Feb 2023 19:59:10 +0100 Subject: [PATCH] TURN_API_KEY and TURN_SECRET fix the docker environment variables TURN_API_KEY and TURN_SECRET didn't work this is because the entrypoint.sh is only replacing the values but do not uncomment the line like the other replacements do --- docker/server/entrypoint.sh | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/docker/server/entrypoint.sh b/docker/server/entrypoint.sh index 24958f2..5b72e61 100755 --- a/docker/server/entrypoint.sh +++ b/docker/server/entrypoint.sh @@ -128,10 +128,10 @@ if [ ! -f "$CONFIG" ]; then fi if [ ! -z "$TURN_API_KEY" ]; then - sed -i "s|the-api-key-for-the-rest-service|$TURN_API_KEY|" "$CONFIG" + sed -i "s|#apikey = the-api-key-for-the-rest-service|apikey = $TURN_API_KEY|" "$CONFIG" fi if [ ! -z "$TURN_SECRET" ]; then - sed -i "s|6d1c17a7-c736-4e22-b02c-e2955b7ecc64|$TURN_SECRET|" "$CONFIG" + sed -i "s|#secret = 6d1c17a7-c736-4e22-b02c-e2955b7ecc64|secret = $TURN_SECRET|" "$CONFIG" fi if [ ! -z "$TURN_SERVERS" ]; then sed -i "s|#servers =.*|servers = $TURN_SERVERS|" "$CONFIG"