docker-tor-hidden-service/assets/torrc

17 lines
429 B
Text
Raw Normal View History

2016-03-07 03:43:12 +01:00
{% for container in containers %}
HiddenServiceDir /var/lib/tor/hidden_service/{{container.names[0]}}
{% for link in container.links %}
2016-04-11 23:58:48 +02:00
{% set port = env['PORT_MAP'] if 'PORT_MAP' in env else link.port %}
2016-04-12 00:03:21 +02:00
{% if link.protocol == 'tcp' %}
2016-04-11 23:58:48 +02:00
# PORT {{container.names[0]}} {{port}}
HiddenServicePort {{port}} {{link.ip}}:{{link.port}}
2016-04-12 00:03:21 +02:00
{% endif %}
2016-03-07 03:43:12 +01:00
{% endfor %}
{% endfor %}
2016-03-16 22:16:03 +01:00
{% if 'RELAY' in env %}
2016-03-07 03:43:12 +01:00
ORPort 9001
{% endif %}
SocksPort 0