diff --git a/conf/nginx.conf b/conf/nginx.conf index 686b45d..715112d 100644 --- a/conf/nginx.conf +++ b/conf/nginx.conf @@ -108,7 +108,7 @@ location /media/attachments/ { # 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.