fix: return absolute path as the icon url if CONSOLE_API_URL is empty (#15279)

This commit is contained in:
kurokobo
2025-03-10 14:15:06 +09:00
committed by GitHub
parent 59fd3aad31
commit f2b7df94d7
4 changed files with 23 additions and 21 deletions

View File

@@ -4,19 +4,6 @@ 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;