aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
-rw-r--r--config.env.example2
-rw-r--r--core/entrypoint-tor.sh3
2 files changed, 4 insertions, 1 deletions
diff --git a/config.env.example b/config.env.example
index 99e74b5..3ae6b58 100644
--- a/config.env.example
+++ b/config.env.example
@@ -51,6 +51,8 @@ DEBUGGING_SAVE_RESPONSES=False
MAX_CIRCUIT=500 # seconds
CIRCUIT_TIMEOUT=500 # seconds
URL_CHECK=https://www.youtube.com/results?search_query=rms
+EXIT_NODES={CH},{RU},{UA},{EC},{MX},{AR},{CL},{CO}
+EXCLUDE_EXIT_NODES={US},{AU},{CA},{NZ},{GB},{FR},{DE},{UK}
#
# Gunicorn options
diff --git a/core/entrypoint-tor.sh b/core/entrypoint-tor.sh
index 0bfabfe..4834b0d 100644
--- a/core/entrypoint-tor.sh
+++ b/core/entrypoint-tor.sh
@@ -6,7 +6,8 @@ Log notice stdout
SocksPort ${TOR_PORT:-9050} # Default: Bind to localhost:9050 for local connections.
MaxCircuitDirtiness ${MAX_CIRCUIT:-2700}
CircuitBuildTimeout ${CIRCUIT_TIMEOUT:-2700}
-ExcludeExitNodes {US}
+ExitNodes ${EXIT_NODES:-{CH\}}
+ExcludeExitNodes ${EXCLUDE_EXIT_NODES:-{US\}}
StrictNodes 1
EOF
# check loop health tor