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

Support for "path_style" OFFICIALLY with a flag for the s3 hosts that use MinIO, DigitalOceanSpaces, and other software that support S3 API but not the default S3 virtualhost bucket names in the URL #177

Open
mldev94 opened this issue Sep 8, 2023 · 2 comments

Comments

@mldev94
Copy link

mldev94 commented Sep 8, 2023

Support for "path_style" OFFICIALLY for the s3 hosts with a flag for MinIO, DigitalOceanSpaces, and other software that support S3 API but not the default S3 virtualhost bucket names in the URL

https://github.com/fog/fog-aws/blob/b073ba81288af57bcce9144bdec4a77f5c6317b4/lib/fog/aws/storage.rb#L330

fog/fog-aws#516

@mldev94
Copy link
Author

mldev94 commented Sep 8, 2023

Even nginx has support for this: https://hub.docker.com/r/nginxinc/nginx-s3-gateway (scroll to path style section)

Also, I found a way to enable this for the people in the future who searches for this.

I found a flag that exists for this but this gem is using this in its rspec/testing files. However, it works in the code too:

config/initializers/carrierwave.rb

CarrierWave.configure do |config|
    config.aws_credentials = {
      endpoint:         "aaa",
      access_key_id:   "aaa",
      secret_access_key: "aaa",
      region:          "aaa",
      force_path_style: true # right-here
    }
end

@mldev94 mldev94 changed the title Support for "path_style" s3 hosts with a flag for MinIO, DigitalOceanSpaces, and other software that support S3 API but not the default S3 virtualhost bucket names in the URL Support for "path_style" OFFICIALLY with a flag for the s3 hosts that use MinIO, DigitalOceanSpaces, and other software that support S3 API but not the default S3 virtualhost bucket names in the URL Sep 8, 2023
@mshibuya
Copy link
Member

What does that OFFICIALLY mean?
If what you're talking about is just documentation, please go ahead with opening a PR.

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

No branches or pull requests

2 participants