Skip to content

Commit da64b89

Browse files
committed
Add redirect for /api/v1/mcp and enhance proxy headers for improved request handling
1 parent 67dda2a commit da64b89

1 file changed

Lines changed: 7 additions & 0 deletions

File tree

docker/nginx/nginx.conf

Lines changed: 7 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -50,6 +50,10 @@ http {
5050
alias /app/new-landingpage/dist/index.html;
5151
}
5252

53+
location = /api/v1/mcp {
54+
return 301 /api/v1/mcp/;
55+
}
56+
5357
location /api/v1/mcp/ {
5458
proxy_pass http://127.0.0.1:${LANGFLOW_BACKEND_PORT};
5559
proxy_http_version 1.1;
@@ -58,6 +62,9 @@ http {
5862
proxy_set_header Upgrade '';
5963

6064
proxy_set_header Host $host;
65+
proxy_set_header X-Forwarded-For $proxy_add_x_forwarded_for;
66+
proxy_set_header X-Forwarded-Proto $scheme;
67+
proxy_set_header X-Real-IP $remote_addr;
6168

6269
proxy_buffering off;
6370
proxy_cache off;

0 commit comments

Comments
 (0)