Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Disable dns support for buckets when "host_bucket" hostname doesn't have a %(bucket)s item in it. #416

Closed
wants to merge 1 commit into from

Conversation

fviard
Copy link
Contributor

@fviard fviard commented Nov 13, 2014

Here is my proposal to support S3 servers that don't support usage of dns hostname for buckets like Ceph:
In the config, currently there is the host_bucket entry that give the bucket "hostname" pattern.
Ex.: host_bucket = "%(bucket)s.s3.amazonaws.com"
With my patch, if you remove the bucket part and only use the base url like that:
Ex.: host_bucket = "s3.amazonaws.com"
Then, dns resolution will be disabled and "path-style" bucket access be used.

@fviard
Copy link
Contributor Author

fviard commented Nov 13, 2014

Proposal to fix the issue: #375

@mdomsch
Copy link
Contributor

mdomsch commented Dec 3, 2014

Merged in PR #430. Closing.

@juanotto
Copy link

Hi, nice to see this is already implemented! I finally got to this after checking the readme on the repo, the usage page in http://s3tools.org/usage and manually checking my s3cfg looking for keywords like "path" and "style".

I am going to document this (in the readme?) and make a PR as it should be explicitly documented, any ideas/recommendations/documentation preferences welcomed.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants