1
0
Fork 0
mirror of https://github.com/rails/rails.git synced 2022-11-09 12:12:34 -05:00
rails--rails/lib/active_storage/storage_services.yml
Jeremy Daer e5503399c0 Configure services that reference other services
* Move service configuration from the Engine to Service
* Delegate configuration mechanics to internal Service::Configurator
* Delegate service building to the concrete Service classes, allowing
  them to configure composed services.
* Implement for the Mirror service.
2017-07-08 17:27:31 -07:00

27 lines
711 B
YAML

test:
service: Disk
root: <%= Rails.root.join("tmp/storage") %>
local:
service: Disk
root: <%= Rails.root.join("storage") %>
# Use rails secrets:edit to set the AWS secrets (as shared:aws:access_key_id|secret_access_key)
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: your_own_bucket
# Remember not to checkin your GCS keyfile to a repository
google:
service: GCS
project: your_project
keyfile: <%= Rails.root.join("path/to/gcs.keyfile") %>
bucket: your_own_bucket
mirror:
service: Mirror
primary: local
mirrors: [ amazon, google ]