From afd4ee86ddb97f8d49585fddd318bedcd3ad55b8 Mon Sep 17 00:00:00 2001 From: Chocobozzz Date: Wed, 30 Dec 2020 16:53:11 +0100 Subject: Remove traefik docker support --- support/docker/production/entrypoint.nginx.sh | 10 ++++++---- 1 file changed, 6 insertions(+), 4 deletions(-) (limited to 'support/docker/production/entrypoint.nginx.sh') diff --git a/support/docker/production/entrypoint.nginx.sh b/support/docker/production/entrypoint.nginx.sh index 670ce84a3..ad26aa0e2 100644 --- a/support/docker/production/entrypoint.nginx.sh +++ b/support/docker/production/entrypoint.nginx.sh @@ -4,12 +4,14 @@ set -e # Process the nginx template SOURCE_FILE="/etc/nginx/conf.d/peertube.template" TARGET_FILE="/etc/nginx/conf.d/default.conf" -export WEBSERVER_HOST="default_server" +export WEBSERVER_HOST="$PEERTUBE_WEBSERVER_HOSTNAME" export PEERTUBE_HOST="peertube:9000" envsubst '${WEBSERVER_HOST} ${PEERTUBE_HOST}' < $SOURCE_FILE > $TARGET_FILE -# Remove HTTPS/SSL from nginx conf since this image is meant as a webserver _behind_ a reverse-proxy doing TLS termination itself -sed -i 's/443 ssl http2/80/g;/ssl_/d' $TARGET_FILE +while :; do + sleep 12h & wait $!; + nginx -s reload; +done & -nginx -g "daemon off;" \ No newline at end of file +nginx -g 'daemon off;' -- cgit v1.2.3