diff options
author | Christian Pointner <equinox@spreadspace.org> | 2023-08-08 00:42:56 +0200 |
---|---|---|
committer | Christian Pointner <equinox@spreadspace.org> | 2023-08-20 22:12:03 +0200 |
commit | 5b08c3fb96e54e0ae8ae1d650658b27dcdfd78de (patch) | |
tree | 48ef1e0e6ef766a63f1b04a071a4ebfd0b90c323 /roles/nginx/vhost/templates | |
parent | fix docker for debian bookworm+ (diff) |
make acmetool cert role more generic (WIP - needs more testing)
Diffstat (limited to 'roles/nginx/vhost/templates')
-rw-r--r-- | roles/nginx/vhost/templates/generic.conf.j2 | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/roles/nginx/vhost/templates/generic.conf.j2 b/roles/nginx/vhost/templates/generic.conf.j2 index 08bf7a60..5c7576e7 100644 --- a/roles/nginx/vhost/templates/generic.conf.j2 +++ b/roles/nginx/vhost/templates/generic.conf.j2 @@ -18,8 +18,8 @@ server { include snippets/acmetool.conf; include snippets/tls{% if 'tls_variant' in nginx_vhost %}-{{ nginx_vhost.tls_variant }}{% endif %}.conf; - ssl_certificate /var/lib/acme/live/{{ nginx_vhost.hostnames[0] }}/fullchain; - ssl_certificate_key /var/lib/acme/live/{{ nginx_vhost.hostnames[0] }}/privkey; + ssl_certificate {{ x509_certificate_path_fullchain }}; + ssl_certificate_key {{ x509_certificate_path_key }}; include snippets/hsts.conf; {% endif %} |