archiecobbs / s3backer

FUSE/NBD single file backing store via Amazon S3
Other
529 stars 75 forks source link

Little adjustment on endpoint URLs #167

Closed solracsf closed 2 years ago

solracsf commented 2 years ago

When using a --region=eu-central-1 region, URL seems to translate (this is what logs output): https://<bucketname>.s3-eu-central-1.amazonaws.com/

After the official Amazon docs, URL should be (please note the . instead of - after s3: https://<bucketname>.s3.eu-central-1.amazonaws.com/

Also, using dualstack endpoints as default could help for IPv6 only hosts: https://<bucketname>.s3.dualstack.<region>.amazonaws.com/

archiecobbs commented 2 years ago

Thanks. Should be fixed by 14429bb.

archiecobbs commented 2 years ago

For dualstack it looks like you should be able to just say e.g. --region=dualstack.eu-central-1.

Actually I take that back... the authorization would probably fail.

solracsf commented 2 years ago

Fine for me (maybe document it). EDIT: yep, it fails...

archiecobbs commented 2 years ago

A workaround would be to use --region=eu-central-1 combined with --baseURL=https://<bucketname>.s3.dualstack.eu-central-1.amazonaws.com/.

Are you able to test that?

solracsf commented 2 years ago

Will do.

solracsf commented 2 years ago

Doesn't work with --baseURL=https://<bucketname>.s3.dualstack.eu-central-1.amazonaws.com/

but works with --baseURL=https://s3.dualstack.eu-central-1.amazonaws.com/

archiecobbs commented 2 years ago

OK great, thanks for checking.