From 5106e4b97dd8bab50cb5f4acd79109ebdcbd4b21 Mon Sep 17 00:00:00 2001 From: Sergey Fedoseev Date: Mon, 5 Aug 2024 22:23:39 +0200 Subject: [PATCH] fix --- s3-proxy/nginx.conf | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/s3-proxy/nginx.conf b/s3-proxy/nginx.conf index 85da2cc2f36..e9fef941f0b 100644 --- a/s3-proxy/nginx.conf +++ b/s3-proxy/nginx.conf @@ -59,7 +59,7 @@ http { proxy_hide_header 'Access-Control-Expose-Headers'; } - location ~ ^/(?[^/]+\.sharepoint\.com)(?/.*) { + location ~ ^/(?[^/]+\.sharepoint\.com)(?/.*) { client_max_body_size 10G; proxy_http_version 1.1; @@ -84,7 +84,7 @@ http { # Proxy the request to S3. It *MUST* be done inside an "if", using "$1" - # calling "set" causes the URL to be decoded, breaking paths with spaces, etc. if ($request_uri ~ "^/[^/?]+(.*)") { - proxy_pass 'https://$host$1'; + proxy_pass 'https://$sharepoint_host$1'; } # # Remove any existing CORS headers from the response to avoid duplicates.