Add rewrites for manifests

Part-of: <https://dev.funkwhale.audio/funkwhale/funkwhale/-/merge_requests/2039>
This commit is contained in:
Georg Krause 2022-12-02 14:06:38 +00:00 committed by Marge
parent ca9e3c7054
commit f17fc0c7a6
3 changed files with 12 additions and 0 deletions

View File

@ -148,4 +148,8 @@ server {
alias ${MUSIC_DIRECTORY_SERVE_PATH};
add_header Access-Control-Allow-Origin '*';
}
location /manifest.json {
return 302 /api/v1/instance/spa-manifest.json;
}
}

View File

@ -140,5 +140,9 @@ http {
alias /music/;
add_header Access-Control-Allow-Origin '*';
}
location /manifest.json {
return 302 /api/v1/instance/spa-manifest.json;
}
}
}

View File

@ -113,4 +113,8 @@ server {
alias ${MUSIC_DIRECTORY_PATH}/;
add_header Access-Control-Allow-Origin '*';
}
location /manifest.json {
return 302 /api/v1/instance/spa-manifest.json;
}
}