Sfoglia il codice sorgente

Workaround for include being defined too early

This is crap but configuration for http scope cannot be both ordered and
merged from map.jinja it seems, see issue #40.
tags/v0.55.0
Gilles Dartiguelongue 9 anni fa
parent
commit
294a775b98
1 ha cambiato i file con 5 aggiunte e 0 eliminazioni
  1. +5
    -0
      nginx/ng/files/nginx.conf

+ 5
- 0
nginx/ng/files/nginx.conf Vedi File

@@ -7,8 +7,13 @@
{%- elif value is mapping -%}
{{ key|indent(ind, True) }}{{ operator }}{{ '{' }}
{%- for k, v in value.items() %}
{%- if k != 'include' %}
{{ nginx_block(v, k, operator, delim, (ind + indent_increment)) }}
{%- endif %}
{%- endfor %}
{%- if 'include' in value.keys() %}
{{ nginx_block(value['include'], 'include', operator, delim, (ind + indent_increment)) }}
{%- endif %}
{{ '}'|indent(ind, True) }}
{%- elif value is iterable -%}
{%- for v in value %}

Loading…
Annulla
Salva