diff --git a/charts/jumpserver/configs/jms-web/default.conf b/charts/jumpserver/configs/jms-web/default.conf index 357af3e..48cfda7 100644 --- a/charts/jumpserver/configs/jms-web/default.conf +++ b/charts/jumpserver/configs/jms-web/default.conf @@ -30,6 +30,10 @@ server { } location /download/ { alias /opt/download/; + try_files $uri @redirect_oss; + } + location @redirect_oss { + rewrite ^/download/(.*)$ https://static.jumpserver.org/download/$1 permanent; } location /static/ { root /opt/jumpserver/data/;