diff options
author | Rigel Kent <sendmemail@rigelk.eu> | 2020-06-22 13:06:54 +0200 |
---|---|---|
committer | Rigel Kent <sendmemail@rigelk.eu> | 2020-11-11 16:45:46 +0100 |
commit | b8f3e6b00b3300f4ebf37bf77711739964c9e5d6 (patch) | |
tree | 00500e5e4c1cebae277972e6ff8e1373298504cd /support/docker/production/entrypoint.nginx.sh | |
parent | e604efcb71ca3bbff701598969d055d688161985 (diff) | |
download | PeerTube-b8f3e6b00b3300f4ebf37bf77711739964c9e5d6.tar.gz PeerTube-b8f3e6b00b3300f4ebf37bf77711739964c9e5d6.tar.zst PeerTube-b8f3e6b00b3300f4ebf37bf77711739964c9e5d6.zip |
move traefik to its own override file
Diffstat (limited to 'support/docker/production/entrypoint.nginx.sh')
-rw-r--r-- | support/docker/production/entrypoint.nginx.sh | 10 |
1 files changed, 5 insertions, 5 deletions
diff --git a/support/docker/production/entrypoint.nginx.sh b/support/docker/production/entrypoint.nginx.sh index 903806936..4d2ead966 100644 --- a/support/docker/production/entrypoint.nginx.sh +++ b/support/docker/production/entrypoint.nginx.sh | |||
@@ -1,15 +1,15 @@ | |||
1 | #!/bin/sh | 1 | #!/bin/sh |
2 | set -e | 2 | set -e |
3 | 3 | ||
4 | # Process nginx template | 4 | # Process the nginx template |
5 | SOURCE="/etc/nginx/conf.d/peertube.template" | 5 | SOURCE_FILE="/etc/nginx/conf.d/peertube.template" |
6 | TARGET="/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="default_server" |
8 | export PEERTUBE_HOST="peertube:9000" | 8 | export PEERTUBE_HOST="peertube:9000" |
9 | 9 | ||
10 | envsubst '${WEBSERVER_HOST} ${PEERTUBE_HOST}' < $SOURCE > $TARGET | 10 | envsubst '${WEBSERVER_HOST} ${PEERTUBE_HOST}' < $SOURCE_FILE > $TARGET_FILE |
11 | 11 | ||
12 | # Remove HTTPS/SSL from nginx conf | 12 | # Remove HTTPS/SSL from nginx conf |
13 | sed -i 's/443 ssl http2/80/g;/ssl_/d' $TARGET | 13 | sed -i 's/443 ssl http2/80/g;/ssl_/d' $TARGET_FILE |
14 | 14 | ||
15 | nginx -g "daemon off;" \ No newline at end of file | 15 | nginx -g "daemon off;" \ No newline at end of file |