If anyone has the same issue.
The answer to Nginx confg issue - couldn't connect to S3 compatible storage from NodeJS test program saved me.
I added directive :
location /bucketname/ {
proxy_pass https://bucketname.s3.amazonaws.com/;
# added
proxy_set_header Host $http_host;
}