Browse Source

fix: tool icons are missing (#15241)

tags/1.0.1
crazywoola 7 months ago
parent
commit
908a7b6c3d
No account linked to committer's email address
1 changed files with 13 additions and 0 deletions
  1. 13
    0
      docker/nginx/conf.d/default.conf.template

+ 13
- 0
docker/nginx/conf.d/default.conf.template View File

@@ -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;

Loading…
Cancel
Save