feature: add extra virtual host style endpoints support - #795
Conversation
…g or S3_ADDRESSING_STYLE environment virable
…g or S3_ADDRESSING_STYLE environment virable
…g or S3_ADDRESSING_STYLE environment virable
|
Getting this merged would be very nice. |
|
any updates? |
|
I would second the importance of this PR. We are using CoreWeave wth their CAIOS storage, which requires the virtual style, and not being able to use s5cmd is very painful ! |
|
@ilkinulas @sonmezonur are there any hopes on getting this merged? It would be really nice to have this upstream! |
Add --addressing-style flag (path/virtual) and S3_ADDRESSING_STYLE env var to allow forcing virtual-host-style bucket resolution on custom S3-compatible endpoints. Compatible with AWS CLI addressing style configuration. (peak#795) Co-Authored-By: Claude Opus 4.6 (1M context) <noreply@anthropic.com>
|
Could we get this PR merged or even #859 |
You can still use s5cmd with other hosts. For example this is how I use s5cmd with mega's s4 storage:
Note that the --endpoint-url option must be specified before the command. |
This PR add the user custom endpoints that need to send request with virtual host style
reference issues:
#794
#518
Here I add a command line flag and also support fetch config from environment variable,
--addressing-style value use virtual host style or path style endpoint: (path, virtual) (default: path)the address-style config is compatible with the aws s3 cli config,here is the aws document , and you can just search the address_style key word in the page. https://docs.aws.amazon.com/cli/latest/topic/s3-config.html
And I well tested it, using this on our daily work, no bug being found till now.
I can give a example here :
let’s see the request detail on wireshark. it just send the request with virtual host style , a bucket name as prefix of host