force-https.patch

This commit is contained in:
myvesta 2023-03-25 18:19:29 +01:00 committed by GitHub
commit 797ae8e515
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23

View file

@ -0,0 +1,11 @@
--- force-https.tpl.orig 2023-03-25 18:15:15.577555584 +0100
+++ force-https.tpl 2023-03-25 16:51:48.044997322 +0100
@@ -2,7 +2,7 @@
listen %ip%:%proxy_port%;
server_name %domain_idn% %alias_idn%;
location / {
- rewrite ^(.*) https://%domain_idn%$1 permanent;
+ rewrite ^(.*) https://$host%$1 permanent;
}
include %home%/%user%/conf/web/*nginx.%domain_idn%.conf_letsencrypt;
}