1
0
Fork 0
mirror of https://github.com/YunoHost-Apps/funkwhale_ynh.git synced 2024-09-03 18:36:24 +02:00

Fix path traversal issues

This commit is contained in:
yalh76 2022-01-07 00:15:33 +01:00
parent 88fea978c7
commit 0bbf930734

View file

@ -105,12 +105,12 @@ location /media/ {
alias __DATADIR__/media/;
}
location /_protected/media {
location /_protected/media/ {
# this is an internal location that is used to serve
# audio files once correct permission / authentication
# has been checked on API side
internal;
alias __DATADIR__/media;
alias __DATADIR__/media/;
}
# Comment the previous location and uncomment this one if you're storing
@ -122,13 +122,13 @@ location /_protected/media {
# proxy_pass $1;
# }
location /_protected/music {
location /_protected/music/ {
# this is an internal location that is used to serve
# audio files once correct permission / authentication
# has been checked on API side
# Set this to the same value as your MUSIC_DIRECTORY_PATH setting
internal;
alias __DATADIR__/music;
alias __DATADIR__/music/;
}
location /staticfiles/ {