mirror of
https://git.mirrors.martin98.com/https://github.com/langgenius/dify.git
synced 2025-07-31 02:12:01 +08:00
fix: tool icons are missing (#15241)
This commit is contained in:
parent
cfd7e8a829
commit
908a7b6c3d
@ -4,6 +4,19 @@ server {
|
|||||||
listen ${NGINX_PORT};
|
listen ${NGINX_PORT};
|
||||||
server_name ${NGINX_SERVER_NAME};
|
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 {
|
location /console/api {
|
||||||
proxy_pass http://api:5001;
|
proxy_pass http://api:5001;
|
||||||
include proxy.conf;
|
include proxy.conf;
|
||||||
|
Loading…
x
Reference in New Issue
Block a user