diff --git a/conf/nginx.conf b/conf/nginx.conf index e177f60..3f2f2d0 100644 --- a/conf/nginx.conf +++ b/conf/nginx.conf @@ -89,7 +89,7 @@ # 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 # Needed to ensure DSub auth isn't forwarded to S3/Minio, see #932. @@ -115,4 +115,4 @@ location /staticfiles/ { alias __DATA_DIR__/data/static/; - } \ No newline at end of file + }