From d7683ed3f7cd56523ff2c0c48961f6fdd9c89a53 Mon Sep 17 00:00:00 2001 From: link2xt Date: Fri, 24 Nov 2023 18:44:27 +0000 Subject: [PATCH] Move ssl_certificate back to http and fix indentation --- deploy-chatmail/src/deploy_chatmail/nginx/nginx.conf.j2 | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/deploy-chatmail/src/deploy_chatmail/nginx/nginx.conf.j2 b/deploy-chatmail/src/deploy_chatmail/nginx/nginx.conf.j2 index 02bf1cae..7484d339 100644 --- a/deploy-chatmail/src/deploy_chatmail/nginx/nginx.conf.j2 +++ b/deploy-chatmail/src/deploy_chatmail/nginx/nginx.conf.j2 @@ -20,6 +20,8 @@ http { ssl_protocols TLSv1 TLSv1.1 TLSv1.2 TLSv1.3; ssl_prefer_server_ciphers on; + ssl_certificate /var/lib/acme/live/{{ config.domain_name }}/fullchain; + ssl_certificate_key /var/lib/acme/live/{{ config.domain_name }}/privkey; gzip on; @@ -28,8 +30,6 @@ http { listen [::]:80 default_server; listen 443 ssl default_server; listen [::]:443 ssl default_server; - ssl_certificate /var/lib/acme/live/{{ config.domain_name }}/fullchain; - ssl_certificate_key /var/lib/acme/live/{{ config.domain_name }}/privkey; root /var/www/html;