diff --git a/templates/http_server.j2 b/templates/http_server.j2 index 1fa9a29..0621a77 100644 --- a/templates/http_server.j2 +++ b/templates/http_server.j2 @@ -32,7 +32,7 @@ server { server_name {{ item.key }}; - {# <- TODO: move this to defaut root snippets -> -#} + {# <- TODO: move this to defaut root snippets ? -> -#} include /etc/nginx/mime.types; default_type application/octet-stream; @@ -43,7 +43,13 @@ server { # "A man is not dead while his name is still spoken." -- Going Postal add_header X-Clacks-Overhead "GNU {{ ', '.join(in_memoriam) }}"; {% 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 access_log /var/log/nginx/{{ item.key }}.log;