]> git.immae.eu Git - github/Chocobozzz/PeerTube.git/blame_incremental - support/docker/production/entrypoint.nginx.sh
Translated using Weblate (Ukrainian)
[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="$PEERTUBE_WEBSERVER_HOSTNAME"
8export PEERTUBE_HOST="peertube:9000"
9
10envsubst '${WEBSERVER_HOST} ${PEERTUBE_HOST}' < $SOURCE_FILE > $TARGET_FILE
11
12while :; do
13 sleep 12h & wait $!;
14 nginx -s reload;
15done &
16
17nginx -g 'daemon off;'