Change S3 access style (#799)

This commit is contained in:
Y.Yamashiro 2020-09-28 12:10:25 +09:00 committed by GitHub
parent 1124632417
commit 64607d49e1
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
1 changed files with 2 additions and 2 deletions

View File

@ -29,7 +29,7 @@ server {
try_files $uri @s3;
}
set $s3_backend 'https://YOUR_S3_HOSTNAME';
set $s3_backend 'https://YOUR_BUCKET_NAME.YOUR_S3_HOSTNAME';
location @s3 {
limit_except GET {
@ -51,7 +51,7 @@ server {
proxy_hide_header x-amz-bucket-region;
proxy_hide_header x-amzn-requestid;
proxy_ignore_headers Set-Cookie;
proxy_pass $s3_backend/YOUR_BUCKET_NAME$uri;
proxy_pass $s3_backend$uri;
proxy_intercept_errors off;
proxy_cache CACHE;