From 19a85ca381ace9b398a56073dac865e7f94b4fc1 Mon Sep 17 00:00:00 2001 From: Emilien Mantel Date: Thu, 22 Mar 2018 19:48:41 +0100 Subject: [PATCH] Autoconfigure ipv6 on fakesite --- templates/etc/nginx/conf.d/FAKESITE.conf.j2 | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) 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 %};