Change TOR circuit to 3 min

This commit is contained in:
Jesús 2021-06-20 22:42:08 -05:00
parent f3f9e3c9ce
commit 0680ed9b11
No known key found for this signature in database
GPG Key ID: F6EE7BC59A315766

View File

@ -78,11 +78,15 @@ EOF
fi fi
if [ "$ROUTE_TOR" = 1 ] || [ "$ROUTE_TOR" = 2 ]; then if [ "$ROUTE_TOR" = 1 ] || [ "$ROUTE_TOR" = 2 ]; then
cat > /etc/torrc <<- EOF cat > /etc/tor/torrc <<- EOF
Log notice stdout Log notice stdout
SocksPort 9050 # Default: Bind to localhost:9050 for local connections. SocksPort 9050 # Default: Bind to localhost:9050 for local connections.
MaxCircuitDirtiness 300
CircuitBuildTimeout 300
ExcludeExitNodes {US}
StrictNodes 1
EOF EOF
tor -f /etc/torrc --runasdaemon 1 tor -f /etc/tor/torrc --runasdaemon 1
fi fi
exec /usr/bin/python3 /srv/app/server.py exec /usr/bin/python3 /srv/app/server.py