add root snippets support

This commit is contained in:
histausse 2022-08-03 22:37:58 +02:00
parent 888b4c0adb
commit ceb8391c06
Signed by: histausse
GPG key ID: 67486F107F62E9E9

View file

@ -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;