fix(front/Docker): fixup of issue introduced in !1897

This commit is contained in:
JuniorJPDJ 2022-07-26 21:25:14 +00:00
parent 6046ce3600
commit 21eaaf1f4d
2 changed files with 3 additions and 2 deletions

View File

@ -0,0 +1 @@
Fix media directory nginx routing error in front docker container introduced in !1897

View File

@ -75,9 +75,9 @@ server {
# 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 ${MEDIA_ROOT}/; # NON-S3 alias ${MEDIA_ROOT}/$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