🐛 Fix template for missing IPv6 on apache-docker-forward

This commit is contained in:
Stefan Haun 2022-08-04 17:32:06 +02:00
parent 346cc41148
commit 31fc12dfb2

View file

@ -1,4 +1,8 @@
{% if 'address' in ansible_default_ipv6 %}
<VirtualHost {{ ansible_default_ipv4.address }}:80 [{{ ansible_default_ipv6.address }}]:80>
{% else %}
<VirtualHost {{ ansible_default_ipv4.address }}:80>
{% endif %}
ServerAdmin {{ server_admin }}
ServerName {{ site_name }}
ServerAlias {{ site_name }}
@ -15,7 +19,11 @@
</VirtualHost>
<IfFile /usr/local/etc/dehydrated/certs/{{ site_name }}>
{% if 'address' in ansible_default_ipv6 %}
<VirtualHost {{ ansible_default_ipv4.address }}:443 [{{ ansible_default_ipv6.address }}]:443>
{% else %}
<VirtualHost {{ ansible_default_ipv4.address }}:443>
{% endif %}
ServerAdmin {{ server_admin }}
ServerName {{ site_name }}
ServerAlias {{ site_name }}