From 46df22854d8a91e5716267c4178e6a8ffaeefe21 Mon Sep 17 00:00:00 2001 From: wiy Date: Thu, 29 May 2025 20:27:54 +0800 Subject: [PATCH] fix(vault & files): frontend nginx config error (#1366) * fix(desktop): fixed the issue that the customized desktop background image does not display * feat: update login & settings & profile version * fix(vault & files): nginx error * fix: vault.conf error --- .../monitoring/templates/system-frontend.yaml | 30 +++++++++---------- 1 file changed, 14 insertions(+), 16 deletions(-) diff --git a/apps/.olares/config/user/helm-charts/monitoring/templates/system-frontend.yaml b/apps/.olares/config/user/helm-charts/monitoring/templates/system-frontend.yaml index f6938a3cd..43b1f8ab5 100644 --- a/apps/.olares/config/user/helm-charts/monitoring/templates/system-frontend.yaml +++ b/apps/.olares/config/user/helm-charts/monitoring/templates/system-frontend.yaml @@ -3064,7 +3064,18 @@ data: } location ~ ^/resources/Home/Pictures/(.*.(png|jpg|svg|gif|jpeg))$ { - alias /data/Pictures/$1; + proxy_pass http://files-service.os-system:80/api/raw/Home/Pictures/$1; + add_header Cache-Control "public, max-age=2592000"; + proxy_set_header X-Real-IP $remote_addr; + proxy_set_header X-Forwarded-For $proxy_add_x_forwarded_for; + proxy_set_header X-Forwarded-Host $host; + add_header Accept-Ranges bytes; + client_body_timeout 600s; + client_max_body_size 4000M; + proxy_request_buffering off; + keepalive_timeout 750s; + proxy_read_timeout 600s; + proxy_send_timeout 600s; autoindex off; } } @@ -3158,22 +3169,9 @@ data: add_header X-Frame-Options SAMEORIGIN; } - location ~ ^/(assets|js|css|fonts|img)/.*.(js|css|png|jpg|svg|woff|woff2)$ + location ~.*\.(js|css|png|jpg|svg|woff|woff2|wasm)$ { - proxy_pass http://files-service.os-system:80/api/raw/Home/Pictures/$1; - add_header Cache-Control "public, max-age=2592000"; - proxy_set_header X-Real-IP $remote_addr; - proxy_set_header X-Forwarded-For $proxy_add_x_forwarded_for; - proxy_set_header X-Forwarded-Host $host; - add_header Accept-Ranges bytes; - client_body_timeout 600s; - client_max_body_size 4000M; - proxy_request_buffering off; - keepalive_timeout 750s; - proxy_read_timeout 600s; - proxy_send_timeout 600s; - - autoindex off; + add_header Cache-Control "public, max-age=2678400"; } } market.conf: |-