From 964b16ed6b60f6905b8a559c90c7d7cc7b757fd7 Mon Sep 17 00:00:00 2001 From: Christian Pointner Date: Thu, 1 Apr 2021 22:19:58 +0200 Subject: add host glt-stream --- roles/nginx/vhost/templates/static-files-with-acme.conf.j2 | 8 ++++++++ 1 file changed, 8 insertions(+) (limited to 'roles/nginx') diff --git a/roles/nginx/vhost/templates/static-files-with-acme.conf.j2 b/roles/nginx/vhost/templates/static-files-with-acme.conf.j2 index f99d6eb4..3dec7f27 100644 --- a/roles/nginx/vhost/templates/static-files-with-acme.conf.j2 +++ b/roles/nginx/vhost/templates/static-files-with-acme.conf.j2 @@ -21,6 +21,10 @@ server { ssl_certificate_key /var/lib/acme/live/{{ nginx_vhost.hostnames[0] }}/privkey; include snippets/hsts.conf; +{% if 'directives_extra' in nginx_vhost and 'server' in nginx_vhost.directives_extra %} + {{ nginx_vhost.directives_extra.server | indent(4) }} + +{% endif %} location / { root {{ nginx_vhost.root }}; {% if 'index' in nginx_vhost %} @@ -31,6 +35,10 @@ server { {% if 'format' in nginx_vhost.autoindex %} autoindex_format {{ nginx_vhost.autoindex.format }}; {% endif %} +{% endif %} +{% if 'directives_extra' in nginx_vhost and 'location' in nginx_vhost.directives_extra %} + + {{ nginx_vhost.directives_extra.location | indent(8) }} {% endif %} } } -- cgit v1.2.3