From e32ede871791dada6d3076a0d6dd1042fc5b80b9 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Marcel=20M=C3=BCller?= Date: Thu, 23 Feb 2023 10:35:30 +0100 Subject: [PATCH] Allow SKIP_VERIFY in docker image MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit Signed-off-by: Marcel Müller --- docker/README.md | 1 + docker/server/entrypoint.sh | 4 ++++ 2 files changed, 5 insertions(+) diff --git a/docker/README.md b/docker/README.md index 606ebc7..b36ebb8 100644 --- a/docker/README.md +++ b/docker/README.md @@ -64,6 +64,7 @@ The running container can be configured through different environment variables: - `GRPC_DNS_DISCOVERY`: Enable DNS discovery on hostnames of configured GRPC targets. - `GRPC_ETCD`: Set to `1` if etcd should be used to configure GRPC peers. - `GRPC_TARGET_PREFIX`: Key prefix of GRPC target entries. +- `SKIP_VERIFY`: Set to `true` to skip certificate validation of backends and proxy servers. This should only be enabled during development, e.g. to work with self-signed certificates. Example with two backends: diff --git a/docker/server/entrypoint.sh b/docker/server/entrypoint.sh index 5b72e61..9fdb1f5 100755 --- a/docker/server/entrypoint.sh +++ b/docker/server/entrypoint.sh @@ -127,6 +127,10 @@ if [ ! -f "$CONFIG" ]; then sed -i "s|#maxscreenbitrate =.*|maxscreenbitrate = $MAX_SCREEN_BITRATE|" "$CONFIG" fi + if [ ! -z "$SKIP_VERIFY" ]; then + sed -i "s|#skipverify =.*|skipverify = $SKIP_VERIFY|" "$CONFIG" + fi + if [ ! -z "$TURN_API_KEY" ]; then sed -i "s|#apikey = the-api-key-for-the-rest-service|apikey = $TURN_API_KEY|" "$CONFIG" fi