From 6cd4e1d1f2bfceca4c025ae6737591995b53eac1 Mon Sep 17 00:00:00 2001 From: Knut Ahlers Date: Mon, 25 Dec 2017 13:51:31 +0100 Subject: [PATCH] Add fallback for locations without lines but target Signed-off-by: Knut Ahlers --- templates/nginx.conf.j2 | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/templates/nginx.conf.j2 b/templates/nginx.conf.j2 index 74afdbf..1824b86 100644 --- a/templates/nginx.conf.j2 +++ b/templates/nginx.conf.j2 @@ -109,7 +109,7 @@ http { {% for location in server.locations | default([]) %} location {{ location.path }} { -{% for line in location.location_lines %} +{% for line in location.location_lines | default([]) %} {{ line }} {% endfor %} {% if location.target is defined %}