Understand the Dify Network Architecture and Traffic Routing
masterThe deployment uses an Nginx proxy to route incoming traffic to various backend services based on the URL path.
Routing Rules:
/console/api,/api,/v1,/files,/mcp,/triggers$\rightarrow$ API Service (Port 5001)/e/$\rightarrow$ Plugin Daemon (Port 5002)/explore$\rightarrow$ Web Service (Port 3000)/marketplace$\rightarrow$ External Marketplace API/(Default) $\rightarrow$ Web Service (Port 3000)
Traffic Flow: External traffic enters via an Ingress Controller or LoadBalancer, hits the Nginx Proxy Pod (Port 80), which then distributes requests to the API, Web, or Plugin services.