fix ssl config for dokuwiki nginx vhost
authorChristian Pointner <equinox@realraum.at>
Sat, 6 Jul 2019 23:13:35 +0000 (01:13 +0200)
committerBernhard Tittelbach <bernhard@tittelbach.org>
Wed, 23 Jul 2025 00:23:28 +0000 (02:23 +0200)
ansible/roles/web/dokuwiki/templates/nginx.j2

index 0db80ad..642cc3c 100644 (file)
@@ -4,6 +4,15 @@ server {
 
     server_name {{ dokuwiki_urls | join(' ') }};
 
+    include snippets/acmetool.conf;
+    include snippets/ssl.conf;
+    ssl_certificate /var/lib/acme/live/{{ dokuwiki_urls[0] }}/fullchain;
+    ssl_certificate_key /var/lib/acme/live/{{ dokuwiki_urls[0] }}/privkey;
+    include snippets/hsts.conf;
+
+    include snippets/security-headers.conf;
+
+
     client_max_body_size 4M;
     client_body_buffer_size 128k;