mirror of
https://github.com/cmehay/docker-tor-hidden-service.git
synced 2025-05-27 04:07:13 +00:00
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:
parent
4c3c04e7a5
commit
9f706238fc
3 changed files with 21 additions and 0 deletions
12
assets/torrc
12
assets/torrc
|
@ -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
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue