docs/reverse-proxy: use standard map, correct X-Forwarded-Proto variable for nginx (#1790)
This commit is contained in:
parent
ef26f58085
commit
95004de5e8
1 changed files with 2 additions and 3 deletions
|
@ -33,8 +33,7 @@ The following example configuration can be used in your nginx setup, substitutin
|
|||
|
||||
```Nginx
|
||||
map $http_upgrade $connection_upgrade {
|
||||
default keep-alive;
|
||||
'websocket' upgrade;
|
||||
default upgrade;
|
||||
'' close;
|
||||
}
|
||||
|
||||
|
@ -61,7 +60,7 @@ server {
|
|||
proxy_buffering off;
|
||||
proxy_set_header X-Real-IP $remote_addr;
|
||||
proxy_set_header X-Forwarded-For $proxy_add_x_forwarded_for;
|
||||
proxy_set_header X-Forwarded-Proto $http_x_forwarded_proto;
|
||||
proxy_set_header X-Forwarded-Proto $scheme;
|
||||
add_header Strict-Transport-Security "max-age=15552000; includeSubDomains" always;
|
||||
}
|
||||
}
|
||||
|
|
Loading…
Reference in a new issue