Display port with .onion

This commit is contained in:
Christophe Mehay 2016-04-11 23:58:48 +02:00
parent 7cb15100bd
commit 3081356fb1
4 changed files with 34 additions and 7 deletions

View file

@ -1,7 +1,9 @@
{% for container in containers %}
HiddenServiceDir /var/lib/tor/hidden_service/{{container.names[0]}}
{% for link in container.links %}
HiddenServicePort {{link.port}} {{link.ip}}:{{link.port}}
{% set port = env['PORT_MAP'] if 'PORT_MAP' in env else link.port %}
# PORT {{container.names[0]}} {{port}}
HiddenServicePort {{port}} {{link.ip}}:{{link.port}}
{% endfor %}
{% endfor %}