summaryrefslogtreecommitdiff
path: root/roles/nginx/vhost
diff options
context:
space:
mode:
authorChristian Pointner <equinox@spreadspace.org>2023-08-16 23:38:07 +0200
committerChristian Pointner <equinox@spreadspace.org>2023-08-20 22:12:03 +0200
commit5756978238ad7b7f2fe8dc46d511cfbd5245c0c3 (patch)
tree11c7adc7de6f7a566f870fedce50e39fb27756ee /roles/nginx/vhost
parentadd role: x509/selfsigned (diff)
uacme roles almost done
Diffstat (limited to 'roles/nginx/vhost')
-rw-r--r--roles/nginx/vhost/templates/generic.conf.j28
1 files changed, 4 insertions, 4 deletions
diff --git a/roles/nginx/vhost/templates/generic.conf.j2 b/roles/nginx/vhost/templates/generic.conf.j2
index 64569a5e..dae84a2f 100644
--- a/roles/nginx/vhost/templates/generic.conf.j2
+++ b/roles/nginx/vhost/templates/generic.conf.j2
@@ -13,8 +13,8 @@ server {
{% endif %}
{% if 'tls' in nginx_vhost %}
-{% if nginx_vhost.tls.certificate_provider == 'acmetool' %}
- include snippets/acmetool.conf;
+{% if nginx_vhost.tls.certificate_provider == 'acmetool' or nginx_vhost.tls.certificate_provider == 'uacme' %}
+ include snippets/{{ nginx_vhost.tls.certificate_provider }}.conf;
{% endif %}
location / {
@@ -36,8 +36,8 @@ server {
{% endif %}
{% endif %}
-{% if nginx_vhost.tls.certificate_provider == 'acmetool' %}
- include snippets/acmetool.conf;
+{% if nginx_vhost.tls.certificate_provider == 'acmetool' or nginx_vhost.tls.certificate_provider == 'uacme' %}
+ include snippets/{{ nginx_vhost.tls.certificate_provider }}.conf;
{% endif %}
include snippets/tls{% if 'variant' in nginx_vhost.tls %}-{{ nginx_vhost.tls.variant }}{% endif %}.conf;
ssl_certificate {{ x509_certificate_path_fullchain }};