mirror of
https://github.com/cmehay/docker-tor-hidden-service.git
synced 2025-05-25 11:22:23 +00:00
16 lines
429 B
Text
16 lines
429 B
Text
{% 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 %}
|
|
{% endfor %}
|
|
{% endfor %}
|
|
|
|
{% if 'RELAY' in env %}
|
|
ORPort 9001
|
|
{% endif %}
|
|
|
|
SocksPort 0
|