docker-tor-hidden-service/assets/torrc

22 lines
506 B
Text
Raw Normal View History

{% for service_group in services %}
HiddenServiceDir /var/lib/tor/hidden_service/{{service_group.name}}
{% for service in service_group.services %}
{% for port in service.ports %}
{% if port.is_socket %}
HiddenServicePort {{port.port_from}} {{port.dest}}
{% endif %}
{% if not port.is_socket %}
HiddenServicePort {{port.port_from}} {{service.host}}:{{port.dest}}
{% endif %}
{% endfor %}
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
# useless line for Jinja bug