mirror of
https://github.com/penpot/penpot.git
synced 2026-06-15 20:02:17 +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;
|
||||
}
|
||||
|
||||
# If you enable the MCP server
|
||||
location /mcp/ws {
|
||||
proxy_set_header Upgrade $http_upgrade;
|
||||
proxy_set_header Connection 'upgrade';
|
||||
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
|
||||
location / {
|
||||
proxy_set_header Host $http_host;
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user