mirror of
https://github.com/serghey-rodin/vesta.git
synced 2025-08-22 14:24:07 -07:00
force-https.patch
This commit is contained in:
parent
71f91ba16d
commit
797ae8e515
1 changed files with 11 additions and 0 deletions
11
src/deb/for-download/tools/patches/force-https.patch
Normal file
11
src/deb/for-download/tools/patches/force-https.patch
Normal 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;
|
||||||
|
}
|
Loading…
Add table
Add a link
Reference in a new issue