Sha256: c22a09999cb13d67e2bfcc7ba45a70412e5d236e76ebae2ea736981268584f19

Contents?: true

Size: 581 Bytes

Versions: 4

Compression:

Stored size: 581 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'

  verify_urls true

  secret 'a7d8613dc92256d0c0a3665a05d8af1b5efa5f66394ffca74da74eb41cc590e4'

  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

4 entries across 4 versions & 1 rubygems

Version Path
locomotive_cms-2.5.7 spec/dummy/config/initializers/dragonfly.rb
locomotive_cms-2.5.6 spec/dummy/config/initializers/dragonfly.rb
locomotive_cms-2.5.6.rc2 spec/dummy/config/initializers/dragonfly.rb
locomotive_cms-2.5.6.rc1 spec/dummy/config/initializers/dragonfly.rb