Sha256: 722e8c115145ec09d41947557a4261dff7d8bbec18d55fa451c5b1d566d75592

Contents?: true

Size: 594 Bytes

Versions: 15

Compression:

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

15 entries across 15 versions & 2 rubygems

Version Path
locomotivecms-search-0.3.6 spec/dummy/config/initializers/dragonfly.rb
locomotivecms-search-0.3.5 spec/dummy/config/initializers/dragonfly.rb
locomotive_cms-2.5.5 spec/dummy/config/initializers/dragonfly.rb
locomotive_cms-2.5.4 spec/dummy/config/initializers/dragonfly.rb
locomotive_cms-2.5.3 spec/dummy/config/initializers/dragonfly.rb
locomotive_cms-2.5.2 spec/dummy/config/initializers/dragonfly.rb
locomotive_cms-2.5.1 spec/dummy/config/initializers/dragonfly.rb
locomotive_cms-2.5.0 spec/dummy/config/initializers/dragonfly.rb
locomotive_cms-2.5.0.rc3 spec/dummy/config/initializers/dragonfly.rb
locomotive_cms-2.5.0.rc2 spec/dummy/config/initializers/dragonfly.rb
locomotivecms-search-0.3.4 spec/dummy/config/initializers/dragonfly.rb
locomotivecms-search-0.3.3 spec/dummy/config/initializers/dragonfly.rb
locomotive_cms-2.5.0.rc1 spec/dummy/config/initializers/dragonfly.rb
locomotivecms-search-0.3.2 spec/dummy/config/initializers/dragonfly.rb
locomotivecms-search-0.3.0 spec/dummy/config/initializers/dragonfly.rb