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

Fix traversal path nginx?

This commit is contained in:
Thomas 2023-06-10 21:36:13 +02:00 committed by GitHub
parent 6077aa5869
commit ee9ded6361
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23

View file

@ -108,9 +108,9 @@ location /media/attachments/ {
# has been checked on API side.
# Comment the "NON-S3" commented lines and uncomment "S3" commented lines
# if you're storing media files in a S3 bucket.
location ~ /_protected/media/(.+) {
location ~ /_protected/media/(.+)/ {
internal;
alias __DATA_DIR__/data/media/$1/; # NON-S3
alias __DATA_DIR__/data/media/$1; # NON-S3
# Needed to ensure DSub auth isn't forwarded to S3/Minio, see #932.
# proxy_set_header Authorization ""; # S3
# proxy_pass $1; # S3