mirror of
https://github.com/jumpserver/helm-charts.git
synced 2025-09-19 18:16:16 +00:00
fix: 添加 web-static 配置
This commit is contained in:
@@ -30,6 +30,10 @@ server {
|
|||||||
}
|
}
|
||||||
location /download/ {
|
location /download/ {
|
||||||
alias /opt/download/;
|
alias /opt/download/;
|
||||||
|
try_files $uri @redirect_oss;
|
||||||
|
}
|
||||||
|
location @redirect_oss {
|
||||||
|
rewrite ^/download/(.*)$ https://static.jumpserver.org/download/$1 permanent;
|
||||||
}
|
}
|
||||||
location /static/ {
|
location /static/ {
|
||||||
root /opt/jumpserver/data/;
|
root /opt/jumpserver/data/;
|
||||||
|
Reference in New Issue
Block a user