diff options
author | Jesús <heckyel@hyperbola.info> | 2021-06-20 22:42:08 -0500 |
---|---|---|
committer | Jesús <heckyel@hyperbola.info> | 2021-06-20 22:43:45 -0500 |
commit | 748dc1090745de1d985c74b21b48e1ce97c012b6 (patch) | |
tree | 31c6a4a59956d1ff7ab6dac217ab4ab14d637f4a /core | |
parent | f3f9e3c9cee52754a04ef2998038a6491bf4cddb (diff) | |
download | yt-local-docker-748dc1090745de1d985c74b21b48e1ce97c012b6.tar.lz yt-local-docker-748dc1090745de1d985c74b21b48e1ce97c012b6.tar.xz yt-local-docker-748dc1090745de1d985c74b21b48e1ce97c012b6.zip |
Change TOR circuit to 5 min
Diffstat (limited to 'core')
-rw-r--r-- | core/entrypoint.sh | 8 |
1 files changed, 6 insertions, 2 deletions
diff --git a/core/entrypoint.sh b/core/entrypoint.sh index 859f6a0..1c15c2c 100644 --- a/core/entrypoint.sh +++ b/core/entrypoint.sh @@ -78,11 +78,15 @@ EOF fi if [ "$ROUTE_TOR" = 1 ] || [ "$ROUTE_TOR" = 2 ]; then - cat > /etc/torrc <<- EOF + cat > /etc/tor/torrc <<- EOF Log notice stdout SocksPort 9050 # Default: Bind to localhost:9050 for local connections. +MaxCircuitDirtiness 300 +CircuitBuildTimeout 300 +ExcludeExitNodes {US} +StrictNodes 1 EOF - tor -f /etc/torrc --runasdaemon 1 + tor -f /etc/tor/torrc --runasdaemon 1 fi exec /usr/bin/python3 /srv/app/server.py |