Sha256: 4f407a948ac5808eb1717f59aedb2dfa041d60d595296ac0a84ea8c9b962d56d

Contents?: true

Size: 993 Bytes

Versions: 66

Compression:

Stored size: 993 Bytes

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 '<%= SecureRandom.hex(32) %>'
  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

66 entries across 66 versions & 1 rubygems

Version Path
alchemy_cms-5.0.10 lib/generators/alchemy/install/templates/dragonfly.rb.tt
alchemy_cms-4.6.7 lib/rails/generators/alchemy/install/templates/dragonfly.rb.tt
alchemy_cms-5.0.9 lib/generators/alchemy/install/templates/dragonfly.rb.tt
alchemy_cms-4.6.6 lib/rails/generators/alchemy/install/templates/dragonfly.rb.tt
alchemy_cms-5.0.8 lib/generators/alchemy/install/templates/dragonfly.rb.tt
alchemy_cms-4.6.5 lib/rails/generators/alchemy/install/templates/dragonfly.rb.tt
alchemy_cms-4.5.1 lib/rails/generators/alchemy/install/templates/dragonfly.rb.tt
alchemy_cms-4.4.5 lib/rails/generators/alchemy/install/templates/dragonfly.rb.tt
alchemy_cms-4.6.4 lib/rails/generators/alchemy/install/templates/dragonfly.rb.tt
alchemy_cms-5.0.7 lib/generators/alchemy/install/templates/dragonfly.rb.tt
alchemy_cms-5.0.6 lib/generators/alchemy/install/templates/dragonfly.rb.tt
alchemy_cms-5.0.5 lib/generators/alchemy/install/templates/dragonfly.rb.tt
alchemy_cms-4.0.6 lib/rails/generators/alchemy/install/templates/dragonfly.rb.tt
alchemy_cms-4.6.3 lib/rails/generators/alchemy/install/templates/dragonfly.rb.tt
alchemy_cms-5.0.4 lib/generators/alchemy/install/templates/dragonfly.rb.tt
alchemy_cms-3.6.7 lib/rails/generators/alchemy/install/templates/dragonfly.rb.tt
alchemy_cms-5.0.3 lib/generators/alchemy/install/templates/dragonfly.rb.tt
alchemy_cms-5.0.2 lib/generators/alchemy/install/templates/dragonfly.rb.tt
alchemy_cms-3.6.6 lib/rails/generators/alchemy/install/templates/dragonfly.rb.tt
alchemy_cms-5.0.1 lib/generators/alchemy/install/templates/dragonfly.rb.tt