From 5ad6e4c9c345d52aae4c58bce8e36c67d28ca81e Mon Sep 17 00:00:00 2001 From: silverwind Date: Wed, 6 Sep 2023 19:49:45 +0200 Subject: [PATCH] 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.~~ --- administration/reverse-proxies.en-us.md | 2 ++ 1 file changed, 2 insertions(+) diff --git a/administration/reverse-proxies.en-us.md b/administration/reverse-proxies.en-us.md index ca066364..c1414837 100644 --- a/administration/reverse-proxies.en-us.md +++ b/administration/reverse-proxies.en-us.md @@ -29,6 +29,8 @@ server { location / { client_max_body_size 512M; proxy_pass http://localhost:3000; + proxy_set_header Connection $http_connection; + proxy_set_header Upgrade $http_upgrade; proxy_set_header Host $host; proxy_set_header X-Real-IP $remote_addr; proxy_set_header X-Forwarded-For $proxy_add_x_forwarded_for;