📚 Add WebSocket proxy configuration for MCP in Nginx example

This commit is contained in:
Yamila Moreno 2026-06-12 10:53:10 +02:00
parent 7cb7f7adb2
commit b20ca4ea89

View File

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