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:
parent
c2586e5814
commit
253890ac16
1 changed files with 1 additions and 1 deletions
|
|
@ -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
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue