diff --git a/tools/nginx.conf b/tools/nginx.conf index 3761381..c51e33f 100644 --- a/tools/nginx.conf +++ b/tools/nginx.conf @@ -9,7 +9,7 @@ server { proxy_pass http://127.0.0.1:34801; } - location ~ ^/(assets|songs|src)/ { + location ~ ^/(assets/|songs/|src/|manifest.json$) { root /srv/taiko-web/public; location ~ ^/songs/(\d+)/preview\.mp3$ { try_files $uri /api/preview?id=$1; diff --git a/tools/nginx_subdir.conf b/tools/nginx_subdir.conf index 169751d..7177b46 100644 --- a/tools/nginx_subdir.conf +++ b/tools/nginx_subdir.conf @@ -9,7 +9,7 @@ server { proxy_pass http://127.0.0.1:34801; } - location ~ ^/taiko-web/(assets|songs|src)/ { + location ~ ^/taiko-web/(assets/|songs/|src/|manifest.json$) { rewrite ^/taiko-web/(.*) /$1 break; root /srv/taiko-web/public; location ~ ^/taiko-web/songs/([0-9]+)/preview\.mp3$ {