blob: 317ef2b9b7a5ee359947088aeca705f01b3c9239 (
plain) (
tree)
|
|
# Configuration should be something like this:
#
# config/environments/development.rb
# config.active_storage.service = :local
#
# config/environments/production.rb
# config.active_storage.service = :amazon
local:
service: Disk
root: <%%= File.join(Dir.tmpdir, "active_storage") %>
amazon:
service: S3
access_key_id: <%%= Rails.application.secrets.aws[:access_key_id] %>
secret_access_key: <%%= Rails.application.secrets.aws[:secret_access_key] %>
region: us-east-1
bucket: <%= Rails.application.class.name.remove(/::Application$/).underscore %>
google:
service: GCS
mirror:
service: Mirror
primary: amazon
secondaries: google
|