mirror of
https://github.com/cmehay/docker-tor-hidden-service.git
synced 2025-04-19 21:39: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
|
@ -119,6 +119,12 @@ PT0gZWQyNTUxOXYxLXNlY3JldDogdHlwZTAgPT0AAACArobDQYyZAWXei4QZwr++j96H1X/gq14NwLRZ
|
||||||
|
|
||||||
Set tor sock5 proxy port for this tor instance. (Use this if you need to connect to tor network with your service)
|
Set tor sock5 proxy port for this tor instance. (Use this if you need to connect to tor network with your service)
|
||||||
|
|
||||||
|
##### `TOR_CONTROL_PORT`, `TOR_CONTROL_AUTH_PASSWORD, `TOR_CONTROL_AUTH_COOKIE`
|
||||||
|
|
||||||
|
Enable tor control port and auth (see doc https://2019.www.torproject.org/docs/tor-manual.html.en)
|
||||||
|
|
||||||
|
Keys are stored in `/var/lib/tor/hidden_service/`
|
||||||
|
|
||||||
|
|
||||||
#### Secrets
|
#### Secrets
|
||||||
|
|
||||||
|
|
|
@ -9,6 +9,9 @@ secret_env:
|
||||||
- '*_SERVICE_NAME'
|
- '*_SERVICE_NAME'
|
||||||
- '*_TOR_SERVICE_*'
|
- '*_TOR_SERVICE_*'
|
||||||
- 'TOR_SOCKS_PORT'
|
- 'TOR_SOCKS_PORT'
|
||||||
|
- 'TOR_CONTROL_PORT'
|
||||||
|
- 'TOR_CONTROL_AUTH_PASSWORD'
|
||||||
|
- 'TOR_CONTROL_AUTH_COOKIE'
|
||||||
|
|
||||||
pre_conf_commands:
|
pre_conf_commands:
|
||||||
- onions --setup-hosts
|
- onions --setup-hosts
|
||||||
|
|
12
assets/torrc
12
assets/torrc
|
@ -25,4 +25,16 @@ SocksPort {{env['TOR_SOCKS_PORT']}}
|
||||||
SocksPort 0
|
SocksPort 0
|
||||||
{% endif %}
|
{% 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
|
# useless line for Jinja bug
|
||||||
|
|
Loading…
Add table
Reference in a new issue