Fix #565: store media files in S3 bucket

This commit is contained in:
Eliot Berriot 2019-04-23 18:00:00 +02:00
commit 101ae27885
No known key found for this signature in database
GPG key ID: DD6965E2476E5C27
14 changed files with 212 additions and 7 deletions

View file

@ -57,13 +57,20 @@ server {
alias ${MEDIA_ROOT}/;
}
# this is an internal location that is used to serve
# audio files once correct permission / authentication
# has been checked on API side
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 ${MEDIA_ROOT};
}
# Comment the previous location and uncomment this one if you're storing
# media files in a S3 bucket
# location ~ /_protected/media/(.+) {
# internal;
# proxy_pass $1;
# }
location /_protected/music {
# this is an internal location that is used to serve