Enables configuration of Tor's control port

The patch adds a single commit which enables configuration of Tor's control port. Once merged, your project can be used in conjuction with vanguards, an addon which increases privacy of a hidden service.
This commit is contained in:
Anonymous contributor 2020-01-24 00:44:03 +01:00 committed by Goldy
parent 4c3c04e7a5
commit 9f706238fc
3 changed files with 21 additions and 0 deletions

View file

@ -25,4 +25,16 @@ SocksPort {{env['TOR_SOCKS_PORT']}}
SocksPort 0
{% endif %}
DataDirectory /var/lib/tor/hidden_service
{% if 'TOR_CONTROL_PORT' in env %}
ControlPort {{env['TOR_CONTROL_PORT']}}
{% if 'TOR_CONTROL_AUTH_PASSWORD' in env %}
HashedControlPassword {{env['TOR_CONTROL_AUTH_PASSWORD']}}
{% endif %}
{% if 'TOR_CONTROL_AUTH_COOKIE' in env %}
CookieAuthentication 1
{% endif %}
{% endif %}
# useless line for Jinja bug