Files
grecia/config/storage.yml
Javi Martín 314ce70000 Use a different attachments folder per tenant
While this is not strictly necessary, it can help moving the data of one
tenant to a different server or removing it.

Note we're using subfolders inside the `tenants` subfolder. If we simply
used subfolders with the schema names, if the schema names were, for
instance, language codes like `es`, `en`, `it`, ... they would conflict
with the default subfolders used by Active Storage.
2022-11-11 01:39:19 +01:00

33 lines
1.1 KiB
YAML

local:
service: TenantDisk
root: <%= Rails.root.join("storage") %>
test:
service: TenantDisk
root: <%= Rails.root.join("tmp/storage") %>
# s3:
# service: S3
# access_key_id: <%= Rails.application.secrets.dig(:s3, :access_key_id) %>
# secret_access_key: <%= Rails.application.secrets.dig(:s3, :secret_access_key) %>
# region: <%= Rails.application.secrets.dig(:s3, :region) %>
# bucket: <%= Rails.application.secrets.dig(:s3, :bucket) %>
# Remember not to checkin your GCS keyfile to a repository
# gcs:
# service: GCS
# project: <%= Rails.application.secrets.dig(:gcs, :project) %>
# credentials: <%= Rails.root.join(Rails.application.secrets.dig(:gcs, :credentials).to_s) %>
# bucket: <%= Rails.application.secrets.dig(:gcs, :bucket) %>
# azure:
# service: AzureStorage
# storage_account_name: <%= Rails.application.secrets.dig(:azure, :storage_account_name) %>
# storage_access_key: <%= Rails.application.secrets.dig(:azure, :storage_access_key) %>
# container: <%= Rails.application.secrets.dig(:azure, :container) %>
# mirror:
# service: Mirror
# primary: local
# mirrors: [ s3, gcs, azure ]