mirror of
https://github.com/penpot/penpot.git
synced 2026-08-01 19:06:18 +00:00
📚 Add WebSocket proxy configuration for MCP in Nginx example
This commit is contained in:
parent
7cb7f7adb2
commit
b20ca4ea89
@ -206,12 +206,21 @@ server {
|
|||||||
proxy_pass http://localhost:9001/ws/notifications;
|
proxy_pass http://localhost:9001/ws/notifications;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
# If you enable the MCP server
|
||||||
location /mcp/ws {
|
location /mcp/ws {
|
||||||
proxy_set_header Upgrade $http_upgrade;
|
proxy_set_header Upgrade $http_upgrade;
|
||||||
proxy_set_header Connection 'upgrade';
|
proxy_set_header Connection 'upgrade';
|
||||||
proxy_pass http://localhost:9001/mcp/ws;
|
proxy_pass http://localhost:9001/mcp/ws;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
location /mcp/stream {
|
||||||
|
proxy_pass http://localhost:9001/mcp/stream;
|
||||||
|
}
|
||||||
|
|
||||||
|
location /mcp/sse {
|
||||||
|
proxy_pass http://localhost:9001/mcp/sse;
|
||||||
|
}
|
||||||
|
|
||||||
# Proxy pass
|
# Proxy pass
|
||||||
location / {
|
location / {
|
||||||
proxy_set_header Host $http_host;
|
proxy_set_header Host $http_host;
|
||||||
|
|||||||
Loading…
x
Reference in New Issue
Block a user