Skip to content

Commit

Permalink
fix
Browse files Browse the repository at this point in the history
  • Loading branch information
sir-sigurd committed Aug 5, 2024
1 parent fd5ed04 commit 5106e4b
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions s3-proxy/nginx.conf
Original file line number Diff line number Diff line change
Expand Up @@ -59,7 +59,7 @@ http {
proxy_hide_header 'Access-Control-Expose-Headers';
}

location ~ ^/(?<host>[^/]+\.sharepoint\.com)(?<path>/.*) {
location ~ ^/(?<sharepoint_host>[^/]+\.sharepoint\.com)(?<sharepoint_path>/.*) {
client_max_body_size 10G;

proxy_http_version 1.1;
Expand All @@ -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.
Expand Down

0 comments on commit 5106e4b

Please sign in to comment.