Add max and timeout variables to config.env.example

This commit is contained in:
Jesús 2021-07-01 21:54:23 -05:00
parent a05a0a0ce7
commit 1b102ab95f
No known key found for this signature in database
GPG Key ID: F6EE7BC59A315766
2 changed files with 10 additions and 3 deletions

View File

@ -34,3 +34,10 @@ AUTOCHECK_SUBSCRIPTIONS=True
# debug
GATHER_GOOGLEVIDEO_DOMAINS=False
DEBUGGING_SAVE_RESPONSES=False
#
# Tor options
#
MAX_CIRCUIT=500 # seconds
CIRCUIT_TIMEOUT=500 # seconds

View File

@ -80,9 +80,9 @@ fi
if [ "$ROUTE_TOR" = 1 ] || [ "$ROUTE_TOR" = 2 ]; then
cat > /etc/tor/torrc <<- EOF
Log notice stdout
SocksPort 9050 # Default: Bind to localhost:9050 for local connections.
MaxCircuitDirtiness 300
CircuitBuildTimeout 300
SocksPort ${TOR_PORT:-9050} # Default: Bind to localhost:9050 for local connections.
MaxCircuitDirtiness ${MAX_CIRCUIT:-300}
CircuitBuildTimeout ${CIRCUIT_TIMEOUT:-300}
ExcludeExitNodes {US}
StrictNodes 1
EOF