diff options
Diffstat (limited to 'roles/nginx/vhost')
-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 %} } } |