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:
commit
d2bd054afc
1 changed files with 6 additions and 1 deletions
|
@ -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;
|
||||||
|
|
Loading…
Reference in a new issue