mirror of
https://github.com/penpot/penpot.git
synced 2026-06-17 21:02:05 +00:00
📚 Add WebSocket proxy configuration for MCP in Nginx example (#10152)
The current Nginx example doesn't include the required Websocket settings to correctly proxy /mcp/ws, and leads to WebSocket connection error when trying to connect in a design. Adding this lines fixed the issue. Signed-off-by: Justin Lin <30039756+lancatlin@users.noreply.github.com>
This commit is contained in:
parent
2e1839f898
commit
9c7af3aeb5
@ -206,6 +206,12 @@ server {
|
||||
proxy_pass http://localhost:9001/ws/notifications;
|
||||
}
|
||||
|
||||
location /mcp/ws {
|
||||
proxy_set_header Upgrade $http_upgrade;
|
||||
proxy_set_header Connection 'upgrade';
|
||||
proxy_pass http://localhost:9001/mcp/ws;
|
||||
}
|
||||
|
||||
# Proxy pass
|
||||
location / {
|
||||
proxy_set_header Host $http_host;
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user