mirror of
https://github.com/cmehay/docker-tor-hidden-service
synced 2024-11-18 09:25:54 +00:00
25 lines
563 B
Plaintext
25 lines
563 B
Plaintext
{% for service_group in services %}
|
|
HiddenServiceDir {{service_group.hidden_service_dir}}
|
|
{% if service_group.version == 3 %}
|
|
HiddenServiceVersion 3
|
|
{% endif %}
|
|
{% 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 %}
|
|
{% endfor %}
|
|
{% endfor %}
|
|
|
|
{% if 'RELAY' in env %}
|
|
ORPort 9001
|
|
{% endif %}
|
|
|
|
SocksPort 0
|
|
|
|
# useless line for Jinja bug
|