Sha256: 7cc54e67416e89f9c62273444c53d1fa8995df72c4d0e584a09efcd506005419

Contents?: true

Size: 542 Bytes

Versions: 24

Compression:

Stored size: 542 Bytes

Contents

# Configure
Dragonfly.app(:engine).configure do
  plugin :imagemagick,
    convert_command:  `which convert`.strip.presence || '/usr/local/bin/convert',
    identify_command: `which identify`.strip.presence || '/usr/local/bin/identify'

  verify_urls true

  secret '<%= generate_secret %>'

  url_format '/images/dynamic/:job/:sha/:basename.:ext'

  fetch_file_whitelist /public/

  fetch_url_whitelist /.+/
end

# Logger
Dragonfly.logger = Rails.logger

# Mount as middleware
Rails.application.middleware.use Dragonfly::Middleware, :engine

Version data entries

24 entries across 24 versions & 1 rubygems

Version Path
locomotivecms-3.4.1 lib/generators/locomotive/install/templates/dragonfly.rb
locomotivecms-3.4.0 lib/generators/locomotive/install/templates/dragonfly.rb
locomotivecms-3.3.0 lib/generators/locomotive/install/templates/dragonfly.rb
locomotivecms-3.3.0.rc3 lib/generators/locomotive/install/templates/dragonfly.rb
locomotivecms-3.3.0.rc2 lib/generators/locomotive/install/templates/dragonfly.rb
locomotivecms-3.1.2 lib/generators/locomotive/install/templates/dragonfly.rb
locomotivecms-3.2.1 lib/generators/locomotive/install/templates/dragonfly.rb
locomotivecms-3.3.0.rc1 lib/generators/locomotive/install/templates/dragonfly.rb
locomotivecms-3.2.0 lib/generators/locomotive/install/templates/dragonfly.rb
locomotivecms-3.2.0.rc2 lib/generators/locomotive/install/templates/dragonfly.rb
locomotivecms-3.2.0.rc1 lib/generators/locomotive/install/templates/dragonfly.rb
locomotivecms-3.1.1 lib/generators/locomotive/install/templates/dragonfly.rb
locomotivecms-3.1.0 lib/generators/locomotive/install/templates/dragonfly.rb
locomotivecms-3.1.0.rc3 lib/generators/locomotive/install/templates/dragonfly.rb
locomotivecms-3.1.0.rc2 lib/generators/locomotive/install/templates/dragonfly.rb
locomotivecms-3.1.0.rc1 lib/generators/locomotive/install/templates/dragonfly.rb
locomotivecms-3.0.1 lib/generators/locomotive/install/templates/dragonfly.rb
locomotivecms-3.0.0 lib/generators/locomotive/install/templates/dragonfly.rb
locomotivecms-3.0.0.rc7 lib/generators/locomotive/install/templates/dragonfly.rb
locomotivecms-3.0.0.rc6 lib/generators/locomotive/install/templates/dragonfly.rb