mirror of
https://github.com/beclab/Olares
synced 2026-05-24 09:18:23 +00:00
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
This commit is contained in:
parent
eec03ee9b4
commit
46df22854d
1 changed files with 14 additions and 16 deletions
|
|
@ -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: |-
|
||||
|
|
|
|||
Loading…
Reference in a new issue