Add max and timeout variables to config.env.example
This commit is contained in:
parent
a05a0a0ce7
commit
1b102ab95f
@ -34,3 +34,10 @@ AUTOCHECK_SUBSCRIPTIONS=True
|
|||||||
# debug
|
# debug
|
||||||
GATHER_GOOGLEVIDEO_DOMAINS=False
|
GATHER_GOOGLEVIDEO_DOMAINS=False
|
||||||
DEBUGGING_SAVE_RESPONSES=False
|
DEBUGGING_SAVE_RESPONSES=False
|
||||||
|
|
||||||
|
#
|
||||||
|
# Tor options
|
||||||
|
#
|
||||||
|
|
||||||
|
MAX_CIRCUIT=500 # seconds
|
||||||
|
CIRCUIT_TIMEOUT=500 # seconds
|
||||||
|
@ -80,9 +80,9 @@ fi
|
|||||||
if [ "$ROUTE_TOR" = 1 ] || [ "$ROUTE_TOR" = 2 ]; then
|
if [ "$ROUTE_TOR" = 1 ] || [ "$ROUTE_TOR" = 2 ]; then
|
||||||
cat > /etc/tor/torrc <<- EOF
|
cat > /etc/tor/torrc <<- EOF
|
||||||
Log notice stdout
|
Log notice stdout
|
||||||
SocksPort 9050 # Default: Bind to localhost:9050 for local connections.
|
SocksPort ${TOR_PORT:-9050} # Default: Bind to localhost:9050 for local connections.
|
||||||
MaxCircuitDirtiness 300
|
MaxCircuitDirtiness ${MAX_CIRCUIT:-300}
|
||||||
CircuitBuildTimeout 300
|
CircuitBuildTimeout ${CIRCUIT_TIMEOUT:-300}
|
||||||
ExcludeExitNodes {US}
|
ExcludeExitNodes {US}
|
||||||
StrictNodes 1
|
StrictNodes 1
|
||||||
EOF
|
EOF
|
||||||
|
Loading…
x
Reference in New Issue
Block a user