adding WG_HOST as next public env

This commit is contained in:
Shahrad Elahi
2023-09-25 15:26:34 +03:30
parent 19b525d1e6
commit 2b6083a692
6 changed files with 25 additions and 16 deletions

View File

@@ -21,4 +21,9 @@ screen -dmS redis bash -c "redis-server --port 6479 --daemonize no --dir /data -
# Start Tor in the background
screen -dmS tor bash -c "tor -f /etc/tor/torrc"
# If WG_HOST exists, again export it as NEXT_PUBLIC_WG_HOST
if [ ! -z "$WG_HOST" ]; then
export NEXT_PUBLIC_WG_HOST=$WG_HOST
fi
exec "$@"