Sha256: 1077701c2d52d8592388f8a600a65084105137babb2dfd786dd7bc25b74cd12a

Contents?: true

Size: 552 Bytes

Versions: 9

Compression:

Stored size: 552 Bytes

Contents

require 'dragonfly'

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

  protect_from_dos_attacks true

  secret '<%= generate_secret %>'

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

  fetch_file_whitelist /public/

  fetch_url_whitelist /.+/
end

# Logger
Dragonfly.logger = Rails.logger

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

Version data entries

9 entries across 9 versions & 1 rubygems

Version Path
locomotive_cms-2.5.5 lib/generators/locomotive/install/templates/dragonfly.rb
locomotive_cms-2.5.4 lib/generators/locomotive/install/templates/dragonfly.rb
locomotive_cms-2.5.3 lib/generators/locomotive/install/templates/dragonfly.rb
locomotive_cms-2.5.2 lib/generators/locomotive/install/templates/dragonfly.rb
locomotive_cms-2.5.1 lib/generators/locomotive/install/templates/dragonfly.rb
locomotive_cms-2.5.0 lib/generators/locomotive/install/templates/dragonfly.rb
locomotive_cms-2.5.0.rc3 lib/generators/locomotive/install/templates/dragonfly.rb
locomotive_cms-2.5.0.rc2 lib/generators/locomotive/install/templates/dragonfly.rb
locomotive_cms-2.5.0.rc1 lib/generators/locomotive/install/templates/dragonfly.rb