ansible-role-nextcloud/templates/apache2/custom.conf.j2

18 lines
430 B
Text
Raw Permalink Normal View History

# {{ ansible_managed }}
{% if item.alias is defined %}
{% for alias in item.alias %}
ServerAlias {{ alias }}
{% endfor %}
{% endif %}
{% if item.hiddenservice is defined and item.hiddenservice %}
ServerAlias {{ hiddenservice_address.stdout }}
<IfModule mod_headers.c>
<If "%{SERVER_NAME} == '{{ item.name }}'">
Header set Onion-Location "http://{{ hiddenservice_address.stdout }}"
</If>
</IfModule>
{% endif %}