diff --git a/templates/etc/nginx/conf.d/FAKESITE.conf.j2 b/templates/etc/nginx/conf.d/FAKESITE.conf.j2 index 7055f2e..21fa3dc 100644 --- a/templates/etc/nginx/conf.d/FAKESITE.conf.j2 +++ b/templates/etc/nginx/conf.d/FAKESITE.conf.j2 @@ -1,5 +1,5 @@ server { -{% for port in item.listen | default([80]) %} +{% for port in item.listen | default(['80', '[::]:80']) %} listen {{ port }}; {% 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 %};