1
0
Fork 0
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:
titoko titoko 2013-11-29 15:14:13 +01:00
parent e7960641bf
commit 5c7f4a72d4

View file

@ -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;