Fix #565: store media files in S3 bucket
This commit is contained in:
parent
31d990499d
commit
101ae27885
14 changed files with 212 additions and 7 deletions
|
|
@ -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
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue