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:42:08 -0500 |
commit | 0680ed9b11f8ffa0eef5e0792183609f93beb7a7 (patch) | |
tree | 31c6a4a59956d1ff7ab6dac217ab4ab14d637f4a /core | |
parent | f3f9e3c9cee52754a04ef2998038a6491bf4cddb (diff) | |
download | yt-local-docker-0680ed9b11f8ffa0eef5e0792183609f93beb7a7.tar.lz yt-local-docker-0680ed9b11f8ffa0eef5e0792183609f93beb7a7.tar.xz yt-local-docker-0680ed9b11f8ffa0eef5e0792183609f93beb7a7.zip |
Change TOR circuit to 3 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 |