Skip to content

Commit

Permalink
docs/reverse-proxy: use standard map, correct X-Forwarded-Proto varia…
Browse files Browse the repository at this point in the history
…ble for nginx (juanfont#1790)
  • Loading branch information
SuperSandro2000 authored Mar 14, 2024
1 parent ef26f58 commit 95004de
Showing 1 changed file with 2 additions and 3 deletions.
5 changes: 2 additions & 3 deletions docs/reverse-proxy.md
Original file line number Diff line number Diff line change
Expand Up @@ -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;
}
Expand All @@ -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;
}
}
Expand Down

0 comments on commit 95004de

Please sign in to comment.