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.
This commit is contained in:
padreug 2025-10-24 20:16:47 +02:00
parent c2586e5814
commit 253890ac16

View file

@ -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