summaryrefslogtreecommitdiff
path: root/roles/nginx
diff options
context:
space:
mode:
authorChristian Pointner <equinox@spreadspace.org>2021-04-01 22:19:58 +0200
committerChristian Pointner <equinox@spreadspace.org>2021-04-01 22:19:58 +0200
commit964b16ed6b60f6905b8a559c90c7d7cc7b757fd7 (patch)
tree7452e9dca14639691f99d8fc390cb4433f22eb95 /roles/nginx
parentadd iptraf-ng to ch-router (diff)
add host glt-stream
Diffstat (limited to 'roles/nginx')
-rw-r--r--roles/nginx/vhost/templates/static-files-with-acme.conf.j28
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 %}
}
}