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 %}