# Langflow's API door on port 8000, from https://exe.dev/deploy/langflow. # Passes flow runs, webhooks, the OpenAI-style responses endpoint, and # project MCP servers to Langflow. Everything else, the editor and the login # page included, gets 404, so this port can be made public on its own. # Langflow still checks an API key on every request it passes. server { listen 8000; client_max_body_size 100m; proxy_http_version 1.1; proxy_set_header Host $http_host; proxy_set_header X-Forwarded-Proto https; # Stream answers and MCP events as they come; agents can take minutes. proxy_buffering off; proxy_read_timeout 600s; location = /health { proxy_pass http://langflow:7860; } location /api/v1/run/ { proxy_pass http://langflow:7860; } location /api/v1/webhook/ { proxy_pass http://langflow:7860; } location = /api/v1/responses { proxy_pass http://langflow:7860; } location ~ ^/api/v1/mcp/project/[0-9a-f-]+/streamable/?$ { proxy_set_header Connection ""; proxy_pass http://langflow:7860; } location / { return 404; } }