require 'dragonfly' require 'dragonfly/s3_data_store' # Configure Dragonfly.app.configure do plugin :imagemagick protect_from_dos_attacks true secret '201403152307...' url_format "/media/:job/:name" datastore :s3, bucket_name: ENV['S3_BUCKET_NAME'], access_key_id: ENV['S3_ACCESS_KEY_ID'], secret_access_key: ENV['S3_SECRET_ACCESS_KEY'], region: ENV['S3_REGION'] end # Logger Dragonfly.logger = Rails