#

Reverse proxy s3 bucket

Posted on: September 23rd 2019, 6:35:17 am
location /aws/ {
    rewrite /aws/(.*) /$1 break;
    proxy_pass https://{URL}.s3-ap-southeast-1.amazonaws.com;
    proxy_set_header Host '{URL}.s3-ap-southeast-1.amazonaws.com';
}