]> git.immae.eu Git - github/Chocobozzz/PeerTube.git/blame_incremental - support/docker/production/entrypoint.nginx.sh
export rtmp port in dockerfiles
[github/Chocobozzz/PeerTube.git] / support / docker / production / entrypoint.nginx.sh
... / ...
CommitLineData
1#!/bin/sh
2set -e
3
4# Process the nginx template
5SOURCE_FILE="/etc/nginx/conf.d/peertube.template"
6TARGET_FILE="/etc/nginx/conf.d/default.conf"
7export WEBSERVER_HOST="default_server"
8export PEERTUBE_HOST="peertube:9000"
9
10envsubst '${WEBSERVER_HOST} ${PEERTUBE_HOST}' < $SOURCE_FILE > $TARGET_FILE
11
12# Remove HTTPS/SSL from nginx conf since this image is meant as a webserver _behind_ a reverse-proxy doing TLS termination itself
13sed -i 's/443 ssl http2/80/g;/ssl_/d' $TARGET_FILE
14
15nginx -g "daemon off;"