Skip to content

armgit / dify

Public Imported from GitHub
0

Build Agentic workflows, RAG pipelines, with rich AI model and tool support on one collaborative workspace. Deploy on cloud, VPC, or self-hosted, so teams move from prototype to production without rebuilding the stack.

fix: tool icons are missing (#15241)

crazywoola908a7b6c3de4
diff --git a/docker/nginx/conf.d/default.conf.template b/docker/nginx/conf.d/default.conf.template
index a458412d1e1..44191ca1d0a 100644
--- a/docker/nginx/conf.d/default.conf.template
+++ b/docker/nginx/conf.d/default.conf.template
@@ -4,6 +4,19 @@ server {
listen ${NGINX_PORT};
server_name ${NGINX_SERVER_NAME};
+ # Rule 1: Handle application entry points (preserve /app/{id})
+ location ~ ^/app/[a-f0-9-]+$ {
+ proxy_pass http://api:5001;
+ include proxy.conf;
+ }
+
+ # Rule 2: Handle static resource requests (remove /app/{id} prefix)
+ location ~ ^/app/[a-f0-9-]+/(console/api/.*)$ {
+ rewrite ^/app/[a-f0-9-]+/(.*)$ /$1 break;
+ proxy_pass http://api:5001;
+ include proxy.conf;
+ }
+
location /console/api {
proxy_pass http://api:5001;
include proxy.conf;