File tree Expand file tree Collapse file tree
Expand file tree Collapse file tree Original file line number Diff line number Diff line change 77 plugin :imagemagick
88
99 # set in credentials file
10- secret Rails . application . credentials . dragonfly_secret
10+ secret ENV [ "DRAGONFLY_SECRET" ]
1111
1212 url_format '/media/:job/:name'
1313
1616 if ENV [ 'DRAGONFLY_AWS' ] == 'true'
1717 require 'dragonfly/s3_data_store'
1818 datastore ( :s3 , {
19- bucket_name : ENV . fetch ( 'AWS_BUCKET_NAME' , nil ) ,
20- access_key_id : ENV . fetch ( 'AWS_ACCESS_KEY_ID' ,
21- Rails . application . credentials . aws . access_key_id ) ,
22- secret_access_key : ENV . fetch ( 'AWS_SECRET_ACCESS_KEY' ,
23- Rails . application . credentials . aws . secret_access_key ) ,
24- region : ENV . fetch ( 'AWS_REGION' , nil ) ,
19+ bucket_name : ENV [ 'AWS_BUCKET_NAME' ] . presence ,
20+ access_key_id : ENV [ 'AWS_ACCESS_KEY_ID' ] . presence ,
21+ secret_access_key : ENV [ 'AWS_SECRET_ACCESS_KEY' ] . presence ,
22+ region : ENV [ 'AWS_REGION' ] . presence ,
2523 root_path : Rails . env ,
2624 url_scheme : 'https'
2725 } )
You can’t perform that action at this time.
0 commit comments