Sha256: ee7f9e4369e0f39f35a018213d9aeec4a8d8eedf4132cf64acba3391b43a69f2

Contents?: true

Size: 759 Bytes

Versions: 2

Compression:

Stored size: 759 Bytes

Contents

CarrierWave.configure do |config|
  config.fog_credentials = {
    :provider               => 'AWS',
    :aws_access_key_id      => ENV['FOG_ACCESS_KEY_ID'],
    :aws_secret_access_key  => ENV['FOG_SECRET_ACCESS_KEY'] ,
    #:region                 => 'eu-west-1',                  # optional, defaults to 'us-east-1'
    #:hosts                  => 's3.example.com',             # optional, defaults to nil
    #:endpoint               => 'https://s3.example.com:8080' # optional, defaults to nil
  }
  config.fog_directory  = ENV['FOG_BUCKET']           # required
  #config.fog_public     = false                                   # optional, defaults to true
  config.fog_attributes = {'Cache-Control'=>'max-age=315576000'}  # optional, defaults to {}
end

Version data entries

2 entries across 2 versions & 1 rubygems

Version Path
chaskiq-0.0.3 config/initializers/carrierwave.rb
chaskiq-0.0.2 config/initializers/carrierwave.rb