You cannot select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
main
${ noResults }
18 lines
395 B
Bash
18 lines
395 B
Bash
#!/bin/sh
|
|||
set -e
|
|||
|
|||
# Process the nginx template
|
|||
SOURCE_FILE="/etc/nginx/conf.d/peertube.template"
|
|||
TARGET_FILE="/etc/nginx/conf.d/default.conf"
|
|||
export WEBSERVER_HOST="$PEERTUBE_WEBSERVER_HOSTNAME"
|
|||
export PEERTUBE_HOST="peertube:9000"
|
|||
|
|||
envsubst '${WEBSERVER_HOST} ${PEERTUBE_HOST}' < $SOURCE_FILE > $TARGET_FILE
|
|||
|
|||
while :; do
|
|||
sleep 12h & wait $!;
|
|||
nginx -s reload;
|
|||
done &
|
|||
|
|||
nginx -g 'daemon off;'
|