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.dig(:aws, :access_key_id) %>
#   secret_access_key: <%= Rails.application.secrets.dig(: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
#   secondaries: [ amazon, google ]

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.dig(:aws, :access_key_id) %>
#   secret_access_key: <%= Rails.application.secrets.dig(: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

# Use rails secrets:edit to set the Azure secret (as shared:azure:storage_access_key)
# microsoft:
#   service: Azure
#   path: your_azure_storage_path
#   storage_account_name: your_account_name
#   storage_access_key: <%= Rails.application.secrets.dig(:azure, :storage_access_key) %>
#   container: your_container_name

# mirror:
#   service: Mirror
#   primary: local
#   secondaries: [ amazon, google ]

Add Azure configuration to Active Storage template
Add Azure configuration to Active Storage template

With Active Storage supporting Azure, we should show people how to set it up.

Incorporates the minor changes originally in https://github.com/rails/activestorage/pull/88 as well