|
|
|
|
|
|
|
|
{% set indent_increment = 4 %} |
|
|
{% set indent_increment = 4 %} |
|
|
|
|
|
|
|
|
{%- macro nginx_block(value, key=None, operator=' ', delim=';', ind=0) -%} |
|
|
{%- macro nginx_block(value, key=None, operator=' ', delim=';', ind=0) -%} |
|
|
|
|
|
{%- if value != None -%} |
|
|
{%- if value is number or value is string -%} |
|
|
{%- if value is number or value is string -%} |
|
|
{{ key|indent(ind, True) }}{{ operator }}{{ value }}{{ delim }} |
|
|
{{ key|indent(ind, True) }}{{ operator }}{{ value }}{{ delim }} |
|
|
{%- elif value is mapping -%} |
|
|
{%- elif value is mapping -%} |
|
|
|
|
|
|
|
|
{%- else -%} |
|
|
{%- else -%} |
|
|
{{ key|indent(ind, True) }}{{ operator }}{{ value }}{{ delim }} |
|
|
{{ key|indent(ind, True) }}{{ operator }}{{ value }}{{ delim }} |
|
|
{%- endif -%} |
|
|
{%- endif -%} |
|
|
|
|
|
{%- else -%} |
|
|
|
|
|
{%- endif -%} |
|
|
{%- endmacro -%} |
|
|
{%- endmacro -%} |
|
|
|
|
|
|
|
|
# Default nginx server configuration |
|
|
# Default nginx server configuration |