Dragonfly S3 Server
AWS_ACCESS_KEY_ID: Your AWS Access Key ID.
AWS_REGION: The AWS region in which the S3 bucket resides.
AWS_SECRET_ACCESS_KEY: Your AWS Secret Access Key.
DRAGONFLY_SECRET: The Dragonfly secret key that protects against DOS attacks - shared with the main app.
DRAGONFLY_URL_FORMAT: The Dragonfly asset path - must match
url_format in the main app.
S3_BUCKET: The name of your S3 bucket.
WEB_PROCESSES: The number of web processes.
WEB_THREADS: The number of threads per web process.
Modifications to the main Rails app
There are a couple of changes to make in your main Rails app's
Ensure that Dragonfly-generated asset URLs point to your newly created server by adding a
Dragonfly.app.configure do url_host 'https://my-dragonfly-s3-server.example.com' end
Prevent assets from being processed/served by removing this line: