From 5d67b095944f24f5b09f304250f56f3e00251152 Mon Sep 17 00:00:00 2001 From: Benjamin Neff Date: Sun, 18 Jun 2017 21:09:05 +0200 Subject: [PATCH] Move includes to the top of nginx.conf --- nginx/ng/files/nginx.conf | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/nginx/ng/files/nginx.conf b/nginx/ng/files/nginx.conf index 05d8f01..e32edea 100644 --- a/nginx/ng/files/nginx.conf +++ b/nginx/ng/files/nginx.conf @@ -32,6 +32,10 @@ # # This file is managed by Salt. +{% if 'include' in config.keys() %} +{{ nginx_block(config.pop('include'), 'include') }} +{%- endif -%} + {% for key, value in config.items() %} {{ nginx_block(value, key) }} {%- endfor -%}