Skip to content

Commit 908a7b6

Browse files
authored
fix: tool icons are missing (langgenius#15241)
1 parent cfd7e8a commit 908a7b6

File tree

1 file changed

+13
-0
lines changed

1 file changed

+13
-0
lines changed

docker/nginx/conf.d/default.conf.template

Lines changed: 13 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -4,6 +4,19 @@ server {
44
listen ${NGINX_PORT};
55
server_name ${NGINX_SERVER_NAME};
66

7+
# Rule 1: Handle application entry points (preserve /app/{id})
8+
location ~ ^/app/[a-f0-9-]+$ {
9+
proxy_pass http://api:5001;
10+
include proxy.conf;
11+
}
12+
13+
# Rule 2: Handle static resource requests (remove /app/{id} prefix)
14+
location ~ ^/app/[a-f0-9-]+/(console/api/.*)$ {
15+
rewrite ^/app/[a-f0-9-]+/(.*)$ /$1 break;
16+
proxy_pass http://api:5001;
17+
include proxy.conf;
18+
}
19+
720
location /console/api {
821
proxy_pass http://api:5001;
922
include proxy.conf;

0 commit comments

Comments
 (0)