Sha256: a1adb9f029989aa2fc86a1b75776884fccc56eac1321f776c4222eb530768f43

Contents?: true

Size: 478 Bytes

Versions: 1

Compression:

Stored size: 478 Bytes

Contents

require 'dragonfly'
require 'common'

# Configure
Dragonfly.app(:steam).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

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

  fetch_file_whitelist /public/

  fetch_url_whitelist /.+/
end

Dragonfly.logger = Locomotive::Common::Logger.instance

Version data entries

1 entries across 1 versions & 1 rubygems

Version Path
locomotivecms_steam-0.1.1 lib/locomotive/steam/initializers/dragonfly.rb