]> git.immae.eu Git - github/Chocobozzz/PeerTube.git/blob - support/docker/production/entrypoint.nginx.sh
9038069363301f81160806c5f3226a9a3b711b1a
[github/Chocobozzz/PeerTube.git] / support / docker / production / entrypoint.nginx.sh
1 #!/bin/sh
2 set -e
3
4 # Process nginx template
5 SOURCE="/etc/nginx/conf.d/peertube.template"
6 TARGET="/etc/nginx/conf.d/default.conf"
7 export WEBSERVER_HOST="default_server"
8 export PEERTUBE_HOST="peertube:9000"
9
10 envsubst '${WEBSERVER_HOST} ${PEERTUBE_HOST}' < $SOURCE > $TARGET
11
12 # Remove HTTPS/SSL from nginx conf
13 sed -i 's/443 ssl http2/80/g;/ssl_/d' $TARGET
14
15 nginx -g "daemon off;"