diff options
author | Christian Pointner <equinox@spreadspace.org> | 2021-04-01 22:19:58 +0200 |
---|---|---|
committer | Christian Pointner <equinox@spreadspace.org> | 2021-04-01 22:19:58 +0200 |
commit | 964b16ed6b60f6905b8a559c90c7d7cc7b757fd7 (patch) | |
tree | 7452e9dca14639691f99d8fc390cb4433f22eb95 /roles | |
parent | add iptraf-ng to ch-router (diff) |
add host glt-stream
Diffstat (limited to 'roles')
-rw-r--r-- | roles/nginx/vhost/templates/static-files-with-acme.conf.j2 | 8 |
1 files changed, 8 insertions, 0 deletions
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 %} @@ -32,5 +36,9 @@ server { 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 %} } } |