From d3e4cc20220a768cc264ebfbe6268e23b5feb250 Mon Sep 17 00:00:00 2001 From: Florian Hotze Date: Tue, 17 Dec 2024 09:02:19 +0100 Subject: [PATCH] Reverse proxy: Update config to set HTTP version as required for WebSockets Signed-off-by: Florian Hotze --- installation/reverse-proxy.md | 3 +++ 1 file changed, 3 insertions(+) diff --git a/installation/reverse-proxy.md b/installation/reverse-proxy.md index 896052aff5..2e9200870d 100644 --- a/installation/reverse-proxy.md +++ b/installation/reverse-proxy.md @@ -46,6 +46,7 @@ server { add_header 'Access-Control-Allow-Methods' 'GET,POST,OPTIONS,PUT,DELETE,PATCH' always; location / { + proxy_http_version 1.1; proxy_pass http://localhost:8080/; proxy_set_header Host $http_host; proxy_set_header X-Real-IP $remote_addr; @@ -326,6 +327,7 @@ server { add_header Strict-Transport-Security "max-age=31536000"; # Remove if using self-signed and are having trouble. location / { + proxy_http_version 1.1; proxy_pass http://localhost:8080/; proxy_set_header Host $http_host; proxy_set_header X-Real-IP $remote_addr; @@ -468,6 +470,7 @@ server { add_header Set-Cookie X-OPENHAB-AUTH-HEADER=1; location / { + proxy_http_version 1.1; proxy_pass https://localhost:8443/; #Update the port number if needed proxy_set_header Host $http_host; proxy_set_header X-Real-IP $remote_addr;