Sha256: f6c78eb9d5149adada8082e32ae793442b416566841b9307f6cacbf75b08808d
Contents?: true
Size: 1.01 KB
Versions: 1
Compression:
Stored size: 1.01 KB
Contents
# AlchemyCMS Dragonfly configuration. # # Consider using some kind of caching solution for image processing. # For small projects, we have good experience with Rack::Cache. # # Larger installations should consider using a CDN, start reading # http://markevans.github.io/dragonfly/cache/ # # A complete reference can be found at # http://markevans.github.io/dragonfly/configuration/ # # Pictures # Dragonfly.app(:alchemy_pictures).configure do dragonfly_url nil plugin :imagemagick plugin :svg secret '36e2268a1135a0b7f676ea3cb4d80e0d292a5967a5204bcea895d5b33ac1ffeb' url_format '/pictures/:job/:name.:ext' datastore :file, root_path: Rails.root.join('uploads/pictures').to_s, server_root: Rails.root.join('public'), store_meta: false end # Mount as middleware Rails.application.middleware.use Dragonfly::Middleware, :alchemy_pictures # Attachments Dragonfly.app(:alchemy_attachments).configure do datastore :file, root_path: Rails.root.join('uploads/attachments').to_s, store_meta: false end
Version data entries
1 entries across 1 versions & 1 rubygems
Version | Path |
---|---|
alchemy-solidus-2.2.0 | spec/dummy/config/initializers/dragonfly.rb |