fix: proxy MCP and expose EKAP verification gates
This commit is contained in:
+17
@@ -41,6 +41,23 @@ server {
|
||||
proxy_connect_timeout 10s;
|
||||
}
|
||||
|
||||
# MCP JSON-RPC ucu /api öneki taşımaz. Ayrı proxy olmadan Nginx POST'u
|
||||
# statik dosya isteği sayıp 405 döndürür ve Node'daki API anahtarı kontrolü
|
||||
# hiç çalışmaz.
|
||||
location = /mcp {
|
||||
proxy_pass http://127.0.0.1:3001;
|
||||
proxy_http_version 1.1;
|
||||
proxy_set_header Host $host;
|
||||
proxy_set_header X-Real-IP $remote_addr;
|
||||
proxy_hide_header X-Content-Type-Options;
|
||||
proxy_hide_header Referrer-Policy;
|
||||
proxy_hide_header Permissions-Policy;
|
||||
client_max_body_size 1m;
|
||||
proxy_read_timeout 60s;
|
||||
proxy_send_timeout 60s;
|
||||
proxy_connect_timeout 10s;
|
||||
}
|
||||
|
||||
# Statik varlıklar
|
||||
location /assets/ {
|
||||
root /usr/share/nginx/html;
|
||||
|
||||
Reference in New Issue
Block a user