From 0e1090b717f07711a6c12b410481ce168bd24b6d Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?dni=20=E2=9A=A1?= Date: Tue, 9 Jul 2024 14:56:31 +0200 Subject: [PATCH] docs: nginx websocket support for reverse proxy (#2564) * docs: nginx websocket support for reverse proxy websocket weren't working with that conf * cleanup --------- Co-authored-by: Pavol Rusnak --- docs/guide/installation.md | 9 +++++++++ 1 file changed, 9 insertions(+) diff --git a/docs/guide/installation.md b/docs/guide/installation.md index cb1ee7d0c..a4279eb42 100644 --- a/docs/guide/installation.md +++ b/docs/guide/installation.md @@ -444,6 +444,15 @@ server { proxy_set_header X-Forwarded-Host $host; proxy_set_header X-Forwarded-Proto $scheme; + proxy_set_header X-Real-IP $remote_addr; + proxy_set_header X-Forwarded-For $proxy_add_x_forwarded_for; + proxy_pass_request_headers on; + + # WebSocket support + proxy_http_version 1.1; + proxy_set_header Upgrade $http_upgrade; + proxy_set_header Connection "Upgrade"; + listen [::]:443 ssl; listen 443 ssl; ssl_certificate /etc/letsencrypt/live/lnbits.org/fullchain.pem;