mirror of
https://github.com/YunoHost-Apps/seafile_ynh.git
synced 2024-09-03 20:26:01 +02:00
Improve redirection
This commit is contained in:
parent
c056f482d0
commit
db0cc79e4b
1 changed files with 1 additions and 3 deletions
|
@ -1,7 +1,5 @@
|
|||
location PATHTOCHANGE1 {
|
||||
if ($scheme = 'http' ) {
|
||||
return 301 https://$host$request_uri;
|
||||
}
|
||||
proxy_redirect http:// https://;
|
||||
proxy_pass http://127.0.0.1:SEAHUB_PORT;
|
||||
proxy_set_header Host $host;
|
||||
proxy_set_header X-Real-IP $remote_addr;
|
||||
|
|
Loading…
Reference in a new issue