This commit is contained in:
Shahrad Elahi
2023-09-26 07:28:15 +03:30
parent 440a6189bd
commit c521faf7df
10 changed files with 57 additions and 36 deletions

View File

@@ -19,12 +19,10 @@ fi
screen -dmS redis bash -c "redis-server --port 6479 --daemonize no --dir /data --appendonly yes"
# Start Tor in the background
screen -dmS tor bash -c "tor -f /etc/tor/torrc"
screen -dmS tor bash -c "sleep 1; 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
export NEXT_PUBLIC_WG_HOST="$WG_HOST"
# After 5 seconds, export the database to the WireGuard config file
screen -dm bash -c "sleep 5; curl -s -o /dev/null http://127.0.0.1:3000/api/wireguard/regen"