mirror of
https://github.com/cmehay/docker-tor-hidden-service.git
synced 2025-04-24 07:46:05 +00:00
32 lines
733 B
Text
32 lines
733 B
Text
{% 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 %}
|
|
|
|
{% if 'TOR_SOCKS_PORT' in env %}
|
|
SocksPort {{env['TOR_SOCKS_PORT']}}
|
|
{% else %}
|
|
SocksPort 0
|
|
{% endif %}
|
|
|
|
{% if 'TOR_EXTRA_OPTIONS' in env %}
|
|
{{env['TOR_EXTRA_OPTIONS']}}
|
|
{% endif %}
|
|
|
|
# useless line for Jinja bug
|