Sha256: 16c116c7243a656a6c56b27de3a6a0311424a778059043900b759dbd33cde721

Contents?: true

Size: 1.41 KB

Versions: 80

Compression:

Stored size: 1.41 KB

Contents

# frozen_string_literal: true

# Default CarrierWave setup.
#
CarrierWave.configure do |config|
  config.permissions = 0o666
  config.directory_permissions = 0o777
  config.storage = :file
  config.enable_processing = !Rails.env.test?
end

# Setup CarrierWave to use Amazon S3. Add `gem "fog-aws" to your Gemfile.
#
# CarrierWave.configure do |config|
#   config.storage = :fog
#   config.fog_provider = 'fog/aws'                                             # required
#   config.fog_credentials = {
#     provider:              'AWS',                                             # required
#     aws_access_key_id:     Rails.application.secrets.aws_access_key_id,     # required
#     aws_secret_access_key: Rails.application.secrets.aws_secret_access_key, # required
#     region:                'eu-west-1',                                       # optional, defaults to 'us-east-1'
#     host:                  's3.example.com',                                  # optional, defaults to nil
#     endpoint:              'https://s3.example.com:8080'                      # optional, defaults to nil
#   }
#   config.fog_directory  = 'name_of_directory'                                 # required
#   config.fog_public     = false                                               # optional, defaults to true
#   config.fog_attributes = {
#     'Cache-Control' => "max-age=#{365.day.to_i}",
#     'X-Content-Type-Options' => "nosniff"
#   }
# end

Version data entries

80 entries across 80 versions & 2 rubygems

Version Path
decidim-generators-0.28.4 lib/decidim/generators/app_templates/carrierwave.rb
decidim-generators-0.27.9 lib/decidim/generators/app_templates/carrierwave.rb
decidim-generators-0.28.3 lib/decidim/generators/app_templates/carrierwave.rb
decidim-generators-0.27.8 lib/decidim/generators/app_templates/carrierwave.rb
decidim-generators-0.28.2 lib/decidim/generators/app_templates/carrierwave.rb
decidim-generators-0.27.7 lib/decidim/generators/app_templates/carrierwave.rb
decidim-generators-0.28.1 lib/decidim/generators/app_templates/carrierwave.rb
decidim-generators-0.27.6 lib/decidim/generators/app_templates/carrierwave.rb
decidim-generators-0.26.10 lib/decidim/generators/app_templates/carrierwave.rb
decidim-file_authorization_handler-0.27.1.7 spec/decidim_dummy_app/config/initializers/carrierwave.rb
decidim-generators-0.26.9 lib/decidim/generators/app_templates/carrierwave.rb
decidim-generators-0.28.0 lib/decidim/generators/app_templates/carrierwave.rb
decidim-generators-0.27.5 lib/decidim/generators/app_templates/carrierwave.rb
decidim-generators-0.28.0.rc5 lib/decidim/generators/app_templates/carrierwave.rb
decidim-generators-0.28.0.rc4 lib/decidim/generators/app_templates/carrierwave.rb
decidim-generators-0.26.8 lib/decidim/generators/app_templates/carrierwave.rb
decidim-generators-0.27.4 lib/decidim/generators/app_templates/carrierwave.rb
decidim-generators-0.27.3 lib/decidim/generators/app_templates/carrierwave.rb
decidim-generators-0.26.7 lib/decidim/generators/app_templates/carrierwave.rb
decidim-generators-0.26.5 lib/decidim/generators/app_templates/carrierwave.rb