Move includes to the top of nginx.confsusefix
# | # | ||||
# This file is managed by Salt. | # This file is managed by Salt. | ||||
{% if 'include' in config.keys() %} | |||||
{{ nginx_block(config.pop('include'), 'include') }} | |||||
{%- endif -%} | |||||
{% for key, value in config.items() %} | {% for key, value in config.items() %} | ||||
{{ nginx_block(value, key) }} | {{ nginx_block(value, key) }} | ||||
{%- endfor -%} | {%- endfor -%} |