🐛 Fix template for missing IPv6 on apache-docker-proxy
This commit is contained in:
parent
31fc12dfb2
commit
a410ce5b8f
1 changed files with 8 additions and 0 deletions
|
@ -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 }}
|
||||
|
@ -17,7 +21,11 @@
|
|||
<IfFile /usr/local/etc/dehydrated/certs/{{ site_name }}/cert.pem>
|
||||
<IfFile /usr/local/etc/dehydrated/certs/{{ site_name }}/privkey.pem>
|
||||
<IfFile /usr/local/etc/dehydrated/certs/{{ site_name }}/chain.pem>
|
||||
{% 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 }}
|
||||
|
|
Loading…
Reference in a new issue