From 0d0db95b4645c53484bb63e1b901a5199470a5ad Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Jes=C3=BAs?= Date: Mon, 24 May 2021 12:23:58 -0500 Subject: Add support Tor --- core/entrypoint.sh | 8 ++++++++ 1 file changed, 8 insertions(+) (limited to 'core/entrypoint.sh') diff --git a/core/entrypoint.sh b/core/entrypoint.sh index ba37c18..ae762e8 100644 --- a/core/entrypoint.sh +++ b/core/entrypoint.sh @@ -77,4 +77,12 @@ settings_version = 3 EOF fi +if [ "$ROUTE_TOR" = 1 ] || [ "$ROUTE_TOR" = 2 ]; then + cat > /etc/torrc <<- EOF +Log notice stdout +SocksPort 0.0.0.0:9050 +EOF + tor -f /etc/torrc --runasdaemon 1 +fi + exec /usr/bin/python3 /srv/app/server.py -- cgit v1.2.3