Autoconfigure ipv6 on fakesite

pull/35/head
Emilien Mantel 2018-03-22 19:48:41 +01:00
parent 2bab49221a
commit 19a85ca381
1 changed files with 1 additions and 1 deletions

View File

@ -1,5 +1,5 @@
server { server {
{% for port in item.listen | default([80]) %} {% for port in item.listen | default(['80', '[::]:80']) %}
listen {{ port }}; listen {{ port }};
{% endfor %} {% endfor %}
server_name {% if item.name is string %}{{ item.name }}{% else %}{{ item.name | join(" ") }}{% endif %}{% if item.redirect_from is defined %} {% if item.redirect_from is string %}{{ item.redirect_from }}{% else %}{{ item.redirect_from | join(" ") }}{% endif %}{% endif %}; server_name {% if item.name is string %}{{ item.name }}{% else %}{{ item.name | join(" ") }}{% endif %}{% if item.redirect_from is defined %} {% if item.redirect_from is string %}{{ item.redirect_from }}{% else %}{{ item.redirect_from | join(" ") }}{% endif %}{% endif %};