diff options
author | Chocobozzz <me@florianbigard.com> | 2020-12-30 16:53:11 +0100 |
---|---|---|
committer | Chocobozzz <me@florianbigard.com> | 2020-12-30 17:06:21 +0100 |
commit | afd4ee86ddb97f8d49585fddd318bedcd3ad55b8 (patch) | |
tree | fae625fc92ba84936a063275dac122c1f4e8eb46 /support/docker/production/entrypoint.nginx.sh | |
parent | 83d4aba676ce376fe68ff17e7d92b037b108c2f1 (diff) | |
download | PeerTube-afd4ee86ddb97f8d49585fddd318bedcd3ad55b8.tar.gz PeerTube-afd4ee86ddb97f8d49585fddd318bedcd3ad55b8.tar.zst PeerTube-afd4ee86ddb97f8d49585fddd318bedcd3ad55b8.zip |
Remove traefik docker support
Diffstat (limited to 'support/docker/production/entrypoint.nginx.sh')
-rw-r--r-- | support/docker/production/entrypoint.nginx.sh | 10 |
1 files changed, 6 insertions, 4 deletions
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 | |||
4 | # Process the nginx template | 4 | # Process the nginx template |
5 | SOURCE_FILE="/etc/nginx/conf.d/peertube.template" | 5 | SOURCE_FILE="/etc/nginx/conf.d/peertube.template" |
6 | TARGET_FILE="/etc/nginx/conf.d/default.conf" | 6 | TARGET_FILE="/etc/nginx/conf.d/default.conf" |
7 | export WEBSERVER_HOST="default_server" | 7 | export WEBSERVER_HOST="$PEERTUBE_WEBSERVER_HOSTNAME" |
8 | export PEERTUBE_HOST="peertube:9000" | 8 | export PEERTUBE_HOST="peertube:9000" |
9 | 9 | ||
10 | envsubst '${WEBSERVER_HOST} ${PEERTUBE_HOST}' < $SOURCE_FILE > $TARGET_FILE | 10 | envsubst '${WEBSERVER_HOST} ${PEERTUBE_HOST}' < $SOURCE_FILE > $TARGET_FILE |
11 | 11 | ||
12 | # Remove HTTPS/SSL from nginx conf since this image is meant as a webserver _behind_ a reverse-proxy doing TLS termination itself | 12 | while :; do |
13 | sed -i 's/443 ssl http2/80/g;/ssl_/d' $TARGET_FILE | 13 | sleep 12h & wait $!; |
14 | nginx -s reload; | ||
15 | done & | ||
14 | 16 | ||
15 | nginx -g "daemon off;" \ No newline at end of file | 17 | nginx -g 'daemon off;' |