fix: Avoid public exposure of audio files

This commit is contained in:
JuniorJPDJ 2023-03-17 17:27:04 +01:00 committed by Georg Krause
parent 8030c7b2ca
commit b00ef2e32e
No known key found for this signature in database
GPG Key ID: 2970D504B2183D22
3 changed files with 18 additions and 6 deletions

View File

@ -74,8 +74,12 @@ server {
proxy_pass http://funkwhale-api/.well-known/;
}
location /media/ {
alias ${MEDIA_ROOT}/;
location /media/__sized__/ {
alias ${MEDIA_ROOT}/__sized__/;
}
location /media/attachments/ {
alias ${MEDIA_ROOT}/attachments/;
}
# this is an internal location that is used to serve

View File

@ -120,8 +120,12 @@ server {
proxy_pass http://funkwhale-api/.well-known/;
}
location /media/ {
alias ${MEDIA_ROOT}/;
location /media/__sized__/ {
alias ${MEDIA_ROOT}/__sized__/;
}
location /media/attachments/ {
alias ${MEDIA_ROOT}/attachments/;
}
location /_protected/media {

View File

@ -108,8 +108,12 @@ http {
proxy_pass http://funkwhale-api/api/subsonic/rest/;
}
location /media/ {
alias /protected/media/;
location /media/__sized__/ {
alias /protected/media/__sized__/;
}
location /media/attachments/ {
alias /protected/media/attachments/;
}
# this is an internal location that is used to serve