Chatwoot/config/initializers/carrierwave.rb
Pranav Raj Sreepuram 2a34255e0b Initial Commit
Co-authored-by: Subin <subinthattaparambil@gmail.com>
Co-authored-by: Manoj <manojmj92@gmail.com>
Co-authored-by: Nithin <webofnithin@gmail.com>
2019-08-14 15:18:44 +05:30

20 lines
768 B
Ruby

require 'carrierwave/storage/fog'
CarrierWave.configure do |config|
config.storage = :fog
config.fog_provider = 'fog/aws' # required
config.fog_credentials = {
provider: 'AWS',
aws_access_key_id: 'IAHIHAUVZKNOVTFZGWVT', # required
aws_secret_access_key: 'TNah2bj4p7o5pKbFIqeVAma32pnnXER1r5m7LZvXXFM', # required
region: 'sfo2', # required
endpoint: 'https://sfo2.digitaloceanspaces.com' # required
}
config.storage = :fog
config.fog_directory = 'chatwoot' # required
# config.fog_public = false # optional, defaults to true
config.asset_host = "https://chatwoot.sfo2.digitaloceanspaces.com"
config.fog_attributes = { 'Cache-Control' => 'max-age=315576000' } # optional, defaults to {}
end