From a929801869684a12c8fb175a6455cca5682dda15 Mon Sep 17 00:00:00 2001 From: Thomas <51749973+Thovi98@users.noreply.github.com> Date: Thu, 8 Jun 2023 10:48:52 +0200 Subject: [PATCH] Update nginx.conf --- conf/nginx.conf | 12 ++++++------ 1 file changed, 6 insertions(+), 6 deletions(-) diff --git a/conf/nginx.conf b/conf/nginx.conf index 31798eb..15bf0d2 100644 --- a/conf/nginx.conf +++ b/conf/nginx.conf @@ -108,14 +108,14 @@ 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/(.+) { - # internal; - # alias __DATA_DIR__/data/media//$1; # NON-S3 - # # Needed to ensure DSub auth isn't forwarded to S3/Minio, see #932. + 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. # proxy_set_header Authorization ""; # S3 # proxy_pass $1; # S3 - # more_set_headers "Access-Control-Allow-Origin: *"; - #} + more_set_headers "Access-Control-Allow-Origin: *"; + } location /_protected/music/ { # this is an internal location that is used to serve