aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
-rw-r--r--config.env.example7
-rw-r--r--core/entrypoint.sh6
2 files changed, 10 insertions, 3 deletions
diff --git a/config.env.example b/config.env.example
index e6e59bc..20ecacf 100644
--- a/config.env.example
+++ b/config.env.example
@@ -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
diff --git a/core/entrypoint.sh b/core/entrypoint.sh
index 1c15c2c..bbe05d6 100644
--- a/core/entrypoint.sh
+++ b/core/entrypoint.sh
@@ -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