Sha256: 6ce92ff44e89fd485a65aee8e765464a812db8f009cc176a38685611c8475c5a
Contents?: true
Size: 1.01 KB
Versions: 7
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 '7baeb2d2b1ae338fbcd45a8163421e7df7956f73f6a6ea097d0c6e4a8a8d4323' 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
7 entries across 7 versions & 1 rubygems