add root snippets support
This commit is contained in:
parent
888b4c0adb
commit
ceb8391c06
1 changed files with 8 additions and 2 deletions
|
@ -32,7 +32,7 @@ server {
|
||||||
|
|
||||||
server_name {{ item.key }};
|
server_name {{ item.key }};
|
||||||
|
|
||||||
{# <- TODO: move this to defaut root snippets -> -#}
|
{# <- TODO: move this to defaut root snippets ? -> -#}
|
||||||
include /etc/nginx/mime.types;
|
include /etc/nginx/mime.types;
|
||||||
default_type application/octet-stream;
|
default_type application/octet-stream;
|
||||||
|
|
||||||
|
@ -43,7 +43,13 @@ server {
|
||||||
# "A man is not dead while his name is still spoken." -- Going Postal
|
# "A man is not dead while his name is still spoken." -- Going Postal
|
||||||
add_header X-Clacks-Overhead "GNU {{ ', '.join(in_memoriam) }}";
|
add_header X-Clacks-Overhead "GNU {{ ', '.join(in_memoriam) }}";
|
||||||
{% endif -%}
|
{% endif -%}
|
||||||
{# <- TODO: move this to defaut root snippets -> -#}
|
{# <- TODO: move this to defaut root snippets ?-> -#}
|
||||||
|
|
||||||
|
{% filter indent(width=4) -%}
|
||||||
|
{%- for config in (item.value.root_snippets | default([])) -%}
|
||||||
|
{{ config }}
|
||||||
|
|
||||||
|
{%- endfor -%}
|
||||||
|
|
||||||
# Logs
|
# Logs
|
||||||
access_log /var/log/nginx/{{ item.key }}.log;
|
access_log /var/log/nginx/{{ item.key }}.log;
|
||||||
|
|
Loading…
Reference in a new issue