From b4dd769d084fa5e8f3a9782181e8796c13bb4dde Mon Sep 17 00:00:00 2001 From: Pierre-Olivier Mercier Date: Sun, 26 Mar 2023 20:03:54 +0200 Subject: [PATCH] Make others domains redirect with a 301 --- templates/nginx.conf.j2 | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/templates/nginx.conf.j2 b/templates/nginx.conf.j2 index cddbad1..8051616 100644 --- a/templates/nginx.conf.j2 +++ b/templates/nginx.conf.j2 @@ -118,7 +118,7 @@ ssl_certificate /etc/ssl/csr/{{ domains[0] }}-fullchain.crt; add_header Strict-Transport-Security "max-age=31536000; includeSubDomains;" always; location / { - rewrite (.*) https://{{ domains[0] }}$1; + rewrite (.*) https://{{ domains[0] }}$1 permanent; } } {% endif %}