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

Merge pull request #17 from YunoHost-Apps/opi-patch-1

Force redirection to https
This commit is contained in:
JocelynDelalande 2018-02-16 23:37:44 +01:00 committed by GitHub
commit d2bd054afc
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23

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;