jnicklas/carrierwave — pull request #896 by neuhausler (2012-11-12 15:32:24+00:00)
Title: Support for non-Amazon S3 storage solutions

Propose a change in Carrierwave (public_url method in fog.rb) to support non-Amazon S3-compatible storage. Fog supports those solutions via configuration (see below). Carrierwave currently only supports s3.amazon.com. S3.amazon.com is hardcoded in master branch in public_url method.

Carrierwave/Fog configuration example for non-Amazon S3 storage solutions:

CarrierWave.configure do |config|
config.fog_credentials = {
:provider => 'AWS',
:aws_access_key_id => 'my access key',
:aws_secret_access_key => 'my secret key',
:endpoint => 'https://my-in-house-s3.com'
}
config.fog_directory = 'my-folder'
config.fog_public = true
end