2019-08-19 08:19:57 +00:00
|
|
|
test:
|
|
|
|
service: Disk
|
|
|
|
root: <%= Rails.root.join("tmp/storage") %>
|
|
|
|
|
|
|
|
local:
|
|
|
|
service: Disk
|
|
|
|
root: <%= Rails.root.join("storage") %>
|
|
|
|
|
|
|
|
# Use rails credentials:edit to set the AWS secrets (as aws:access_key_id|secret_access_key)
|
2019-12-29 05:43:28 +00:00
|
|
|
amazon:
|
|
|
|
service: S3
|
|
|
|
access_key_id: <%= ENV.fetch('AWS_ACCESS_KEY_ID', '') %>
|
|
|
|
secret_access_key: <%= ENV.fetch('AWS_SECRET_ACCESS_KEY', '') %>
|
|
|
|
region: <%= ENV.fetch('AWS_REGION', '') %>
|
|
|
|
bucket: <%= ENV.fetch('S3_BUCKET_NAME', '') %>
|
2019-08-19 08:19:57 +00:00
|
|
|
|
|
|
|
# Remember not to checkin your GCS keyfile to a repository
|
2020-01-07 17:29:17 +00:00
|
|
|
google:
|
|
|
|
service: GCS
|
|
|
|
project: <%= ENV.fetch('GCS_PROJECT', '') %>
|
|
|
|
credentials: <%= ENV.fetch('GCS_CREDENTIALS', '').to_json %>
|
|
|
|
bucket: <%= ENV.fetch('GCS_BUCKET', '') %>
|
2019-08-19 08:19:57 +00:00
|
|
|
|
|
|
|
# Use rails credentials:edit to set the Azure Storage secret (as azure_storage:storage_access_key)
|
2020-01-07 17:29:17 +00:00
|
|
|
microsoft:
|
|
|
|
service: AzureStorage
|
|
|
|
storage_account_name: <%= ENV.fetch('AZURE_STORAGE_ACCOUNT_NAME', '') %>
|
|
|
|
storage_access_key: <%= ENV.fetch('AZURE_STORAGE_ACCESS_KEY', '') %>
|
|
|
|
container: <%= ENV.fetch('AZURE_STORAGE_CONTAINER', '') %>
|
2019-08-19 08:19:57 +00:00
|
|
|
|
2020-07-22 06:23:47 +00:00
|
|
|
# s3 compatible service such as DigitalOcean Spaces, Minio.
|
|
|
|
s3_compatible:
|
|
|
|
service: S3
|
|
|
|
access_key_id: <%= ENV.fetch('STORAGE_ACCESS_KEY_ID', '') %>
|
|
|
|
secret_access_key: <%= ENV.fetch('STORAGE_SECRET_ACCESS_KEY', '') %>
|
|
|
|
region: <%= ENV.fetch('STORAGE_REGION', '') %>
|
|
|
|
bucket: <%= ENV.fetch('STORAGE_BUCKET_NAME', '') %>
|
|
|
|
endpoint: <%= ENV.fetch('STORAGE_ENDPOINT', '') %>
|
|
|
|
|
2019-08-19 08:19:57 +00:00
|
|
|
# mirror:
|
|
|
|
# service: Mirror
|
|
|
|
# primary: local
|
|
|
|
# mirrors: [ amazon, google, microsoft ]
|