mirror of
https://github.com/danbee/my-images
synced 2025-03-04 08:49:05 +00:00
Clean up Dragonfly config
This commit is contained in:
parent
9ed576a9e2
commit
9acfbd9c22
@ -1,17 +1,17 @@
|
||||
require 'dragonfly'
|
||||
require "dragonfly"
|
||||
|
||||
# Configure
|
||||
Dragonfly.app.configure do
|
||||
plugin :imagemagick
|
||||
|
||||
protect_from_dos_attacks true
|
||||
verify_urls true
|
||||
secret "0da375f9754c75707f2a3b4e0c75dffb7ec7d6bb1a4a77e8a8dcfba9037bebce"
|
||||
|
||||
url_format "/media/:job/:name"
|
||||
|
||||
datastore :file,
|
||||
root_path: Rails.root.join('public/system/dragonfly', Rails.env),
|
||||
server_root: Rails.root.join('public')
|
||||
root_path: Rails.root.join("public/system/dragonfly", Rails.env),
|
||||
server_root: Rails.root.join("public")
|
||||
end
|
||||
|
||||
# Logger
|
||||
|
||||
Loading…
Reference in New Issue
Block a user