refactor: update Nginx configuration for MCP endpoint handling

This commit is contained in:
Nawaz Dhandala
2025-12-18 11:19:04 +00:00
parent e93b9f7759
commit 73c126699d

View File

@@ -933,7 +933,7 @@ ${PROVISION_SSL_CERTIFICATE_KEY_DIRECTIVE}
proxy_pass http://app/api/workers;
}
location /mcp/ {
location /mcp {
# This is for nginx not to crash when service is not available.
resolver 127.0.0.1 valid=30s;
proxy_set_header Host $host;
@@ -953,10 +953,6 @@ ${PROVISION_SSL_CERTIFICATE_KEY_DIRECTIVE}
proxy_send_timeout 86400s;
chunked_transfer_encoding on;
proxy_pass http://mcp/;
}
location = /mcp {
return 301 /mcp/;
proxy_pass http://mcp;
}
}