mirror of
https://github.com/YunoHost-Apps/funkwhale_ynh.git
synced 2024-09-03 18:36:24 +02:00
Update nginx.conf formatting
This commit is contained in:
parent
b77d9d4be6
commit
35b486bd94
1 changed files with 10 additions and 10 deletions
|
@ -103,19 +103,19 @@ location /media/attachments/ {
|
||||||
more_set_headers "Access-Control-Allow-Origin: *";
|
more_set_headers "Access-Control-Allow-Origin: *";
|
||||||
}
|
}
|
||||||
|
|
||||||
# This is an internal location that is used to serve
|
# This is an internal location that is used to serve
|
||||||
# media (uploaded) files once correct permission / authentication
|
# media (uploaded) files once correct permission / authentication
|
||||||
# has been checked on API side.
|
# has been checked on API side.
|
||||||
# Comment the "NON-S3" commented lines and uncomment "S3" commented lines
|
# Comment the "NON-S3" commented lines and uncomment "S3" commented lines
|
||||||
# if you're storing media files in a S3 bucket.
|
# if you're storing media files in a S3 bucket.
|
||||||
location ~ /_protected/media/(.+) {
|
location ~ /_protected/media/(.+) {
|
||||||
internal;
|
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.
|
# Needed to ensure DSub auth isn't forwarded to S3/Minio, see #932.
|
||||||
# proxy_set_header Authorization ""; # S3
|
# proxy_set_header Authorization ""; # S3
|
||||||
# proxy_pass $1; # S3
|
# proxy_pass $1; # S3
|
||||||
more_set_headers "Access-Control-Allow-Origin: *";
|
more_set_headers "Access-Control-Allow-Origin: *";
|
||||||
}
|
}
|
||||||
|
|
||||||
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
|
||||||
|
|
Loading…
Reference in a new issue