mirror of
https://github.com/cmehay/docker-tor-hidden-service.git
synced 2025-05-25 11:22:23 +00:00
Add support for docker-compose v2 and private keys
This commit is contained in:
parent
dc821c284a
commit
4615d83430
7 changed files with 210 additions and 17 deletions
13
assets/torrc
13
assets/torrc
|
@ -1,11 +1,8 @@
|
|||
{% for container in containers %}
|
||||
HiddenServiceDir /var/lib/tor/hidden_service/{{container.names[0]}}
|
||||
{% for link in container.links %}
|
||||
{% set port = env['PORT_MAP'] if 'PORT_MAP' in env else link.port %}
|
||||
{% if link.protocol == 'tcp' %}
|
||||
# PORT {{container.names[0]}} {{port}}
|
||||
HiddenServicePort {{port}} {{link.ip}}:{{link.port}}
|
||||
{% endif %}
|
||||
{% for service, conf in setup.items() %}
|
||||
HiddenServiceDir /var/lib/tor/hidden_service/{{service}}
|
||||
{% for ports in conf['ports'] %}
|
||||
# PORT {{service}} {{ports[0]}}
|
||||
HiddenServicePort {{ports[0]}} {{service}}:{{ports[1]}}
|
||||
{% endfor %}
|
||||
{% endfor %}
|
||||
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue