mirror of
https://github.com/YunoHost-Apps/jappix_ynh.git
synced 2024-09-03 19:26:19 +02:00
force https
This commit is contained in:
parent
e7960641bf
commit
5c7f4a72d4
1 changed files with 6 additions and 0 deletions
|
@ -1,5 +1,8 @@
|
||||||
location PATHTOCHANGE {
|
location PATHTOCHANGE {
|
||||||
alias ALIASTOCHANGE ;
|
alias ALIASTOCHANGE ;
|
||||||
|
if ($scheme = http) {
|
||||||
|
rewrite ^ https://$server_name$request_uri? permanent;
|
||||||
|
}
|
||||||
index index.php;
|
index index.php;
|
||||||
try_files $uri $uri/ index.php;
|
try_files $uri $uri/ index.php;
|
||||||
location ~ [^/]\.php(/|$) {
|
location ~ [^/]\.php(/|$) {
|
||||||
|
@ -12,6 +15,9 @@ location PATHTOCHANGE {
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
location PATHTOCHANGE/http-bind {
|
location PATHTOCHANGE/http-bind {
|
||||||
|
if ($scheme = http) {
|
||||||
|
rewrite ^ https://$server_name$request_uri? permanent;
|
||||||
|
}
|
||||||
proxy_pass http://127.0.0.1:5290/http-bind;
|
proxy_pass http://127.0.0.1:5290/http-bind;
|
||||||
proxy_set_header Host $host;
|
proxy_set_header Host $host;
|
||||||
proxy_buffering off;
|
proxy_buffering off;
|
||||||
|
|
Loading…
Reference in a new issue