1
0
Fork 0
mirror of https://github.com/YunoHost-Apps/ihatemoney_ynh.git synced 2024-09-03 19:26:15 +02:00

Force redirection to https

This commit is contained in:
opi 2017-08-02 14:13:41 +02:00 committed by GitHub
parent 8c87bbf809
commit feafe46c18

View file

@ -2,6 +2,11 @@ location PATHTOCHANGE/static/ {
alias /opt/yunohost/ihatemoney/src/budget/static/; alias /opt/yunohost/ihatemoney/src/budget/static/;
} }
location PATHTOCHANGE { location PATHTOCHANGE {
# Force https.
if ($scheme = http) {
rewrite ^ https://$server_name$request_uri? permanent;
}
proxy_set_header X-Forwarded-For $proxy_add_x_forwarded_for; proxy_set_header X-Forwarded-For $proxy_add_x_forwarded_for;
proxy_set_header Host $http_host; proxy_set_header Host $http_host;
proxy_redirect off; proxy_redirect off;
@ -17,6 +22,6 @@ location PATHTOCHANGE {
break; break;
} }
# Include SSOWAT user panel. # Include SSOWAT user panel.
include conf.d/yunohost_panel.conf.inc; include conf.d/yunohost_panel.conf.inc;
} }