mirror of
https://github.com/YFGaia/dify-plus.git
synced 2026-06-14 20:41:21 +08:00
76 lines
1.8 KiB
Plaintext
76 lines
1.8 KiB
Plaintext
# Please do not directly edit this file. Instead, modify the .env variables related to NGINX configuration.
|
|
|
|
server {
|
|
listen ${NGINX_PORT};
|
|
server_name ${NGINX_SERVER_NAME};
|
|
keepalive_timeout 1800s;
|
|
client_header_timeout ${NGINX_CLIENT_HEADER_TIMEOUT};
|
|
client_body_timeout ${NGINX_CLIENT_BODY_TIMEOUT};
|
|
# 管理中心反向代理配置
|
|
location = /admin {
|
|
return 301 /admin/;
|
|
}
|
|
location /admin/ {
|
|
proxy_pass http://admin-web:8081/;
|
|
add_header Cache-Control 'no-store, no-cache, must-revalidate, proxy-revalidate, max-age=0';
|
|
include proxy.conf;
|
|
}
|
|
location /admin/api/ {
|
|
rewrite ^/admin/api/(.*)$ /$1 break;
|
|
proxy_pass http://admin-server:8888/admin/api/;
|
|
include proxy.conf;
|
|
}
|
|
|
|
location /console/api {
|
|
proxy_pass http://api:5001;
|
|
include proxy.conf;
|
|
}
|
|
|
|
location /api {
|
|
proxy_pass http://api:5001;
|
|
include proxy.conf;
|
|
}
|
|
|
|
location /v1 {
|
|
proxy_pass http://api:5001;
|
|
include proxy.conf;
|
|
}
|
|
|
|
location /files {
|
|
proxy_pass http://api:5001;
|
|
include proxy.conf;
|
|
}
|
|
|
|
location /explore {
|
|
proxy_pass http://web:3000;
|
|
include proxy.conf;
|
|
}
|
|
|
|
location /e/ {
|
|
proxy_pass http://plugin_daemon:5002;
|
|
proxy_set_header Dify-Hook-Url $scheme://$host$request_uri;
|
|
include proxy.conf;
|
|
}
|
|
|
|
location / {
|
|
proxy_pass http://web:3000;
|
|
include proxy.conf;
|
|
}
|
|
|
|
location /mcp {
|
|
proxy_pass http://api:5001;
|
|
include proxy.conf;
|
|
}
|
|
|
|
location /triggers {
|
|
proxy_pass http://api:5001;
|
|
include proxy.conf;
|
|
}
|
|
|
|
# placeholder for acme challenge location
|
|
${ACME_CHALLENGE_LOCATION}
|
|
|
|
# placeholder for https config defined in https.conf.template
|
|
${HTTPS_CONFIG}
|
|
}
|