From 253890ac161f66bf357b60732ce6bca0f2252981 Mon Sep 17 00:00:00 2001 From: padreug Date: Fri, 24 Oct 2025 20:16:47 +0200 Subject: [PATCH] Extends websocket location matching Updates the Nginx configuration to correctly route websocket requests by extending the location matching regular expression. This change ensures that all websocket endpoints, including those with a '/ws' suffix, are properly proxied to the backend server. --- config/lnbits.nix | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/config/lnbits.nix b/config/lnbits.nix index 8bc4f96..b3bb6fd 100644 --- a/config/lnbits.nix +++ b/config/lnbits.nix @@ -60,7 +60,7 @@ in enableACME = true; locations = { # WebSocket endpoints with additional headers that LNbits might expect - "~ ^/(api/v1/ws/|.*relay.*/)" = { + "~ ^/(api/v1/ws/|.*relay.*/|.*/ws$)" = { proxyPass = "http://127.0.0.1:5000"; extraConfig = '' # WebSocket configuration