12 lines
336 B
Bash
Executable file
12 lines
336 B
Bash
Executable file
#!/bin/bash
|
|
cd "$(dirname "$0")/.."
|
|
. .env
|
|
|
|
if [ "$GLUETUN" = true ]; then
|
|
export UPSTREAM=gluetun
|
|
else
|
|
export UPSTREAM=companion
|
|
fi
|
|
|
|
echo -e "# Don't edit this file. Edit the .tmpl file\n\n" > nginx/conf.d/companion.conf
|
|
DOMAIN=$DOMAIN envsubst '$DOMAIN,$UPSTREAM' < nginx/conf.d/companion.conf.tmpl >> nginx/conf.d/companion.conf
|