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:
parent
88fea978c7
commit
0bbf930734
1 changed files with 4 additions and 4 deletions
|
@ -105,12 +105,12 @@ location /media/ {
|
||||||
alias __DATADIR__/media/;
|
alias __DATADIR__/media/;
|
||||||
}
|
}
|
||||||
|
|
||||||
location /_protected/media {
|
location /_protected/media/ {
|
||||||
# this is an internal location that is used to serve
|
# this is an internal location that is used to serve
|
||||||
# audio files once correct permission / authentication
|
# audio files once correct permission / authentication
|
||||||
# has been checked on API side
|
# has been checked on API side
|
||||||
internal;
|
internal;
|
||||||
alias __DATADIR__/media;
|
alias __DATADIR__/media/;
|
||||||
}
|
}
|
||||||
|
|
||||||
# Comment the previous location and uncomment this one if you're storing
|
# Comment the previous location and uncomment this one if you're storing
|
||||||
|
@ -122,13 +122,13 @@ location /_protected/media {
|
||||||
# proxy_pass $1;
|
# proxy_pass $1;
|
||||||
# }
|
# }
|
||||||
|
|
||||||
location /_protected/music {
|
location /_protected/music/ {
|
||||||
# this is an internal location that is used to serve
|
# this is an internal location that is used to serve
|
||||||
# audio files once correct permission / authentication
|
# audio files once correct permission / authentication
|
||||||
# has been checked on API side
|
# has been checked on API side
|
||||||
# Set this to the same value as your MUSIC_DIRECTORY_PATH setting
|
# Set this to the same value as your MUSIC_DIRECTORY_PATH setting
|
||||||
internal;
|
internal;
|
||||||
alias __DATADIR__/music;
|
alias __DATADIR__/music/;
|
||||||
}
|
}
|
||||||
|
|
||||||
location /staticfiles/ {
|
location /staticfiles/ {
|
||||||
|
|
Loading…
Reference in a new issue