Skip to content

Commit e596806

Browse files
authored
Update nginx recommendations (#26924)
- `Connection` and `Upgrade` [needed for websockets](https://www.nginx.com/blog/websocket-nginx/) - ~~`X-Real-IP` unnecessary and duplicate with `X-Forwarded-For`. [chi checks both headers](https://github.com/go-chi/chi/blob/master/middleware/realip.go), but XFF is definitely the more "standard" one.~~
1 parent d1353ad commit e596806

File tree

1 file changed

+2
-0
lines changed

1 file changed

+2
-0
lines changed

docs/content/administration/reverse-proxies.en-us.md

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -29,6 +29,8 @@ server {
2929
location / {
3030
client_max_body_size 512M;
3131
proxy_pass http://localhost:3000;
32+
proxy_set_header Connection $http_connection;
33+
proxy_set_header Upgrade $http_upgrade;
3234
proxy_set_header Host $host;
3335
proxy_set_header X-Real-IP $remote_addr;
3436
proxy_set_header X-Forwarded-For $proxy_add_x_forwarded_for;

0 commit comments

Comments
 (0)