From 55e610455dc7abefb3b94a0cd76fa2b86ffc5921 Mon Sep 17 00:00:00 2001 From: Mike Gunderloy Date: Tue, 1 Aug 2017 14:29:17 -0500 Subject: 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 --- .../generators/rails/app/templates/config/storage_services.yml | 8 ++++++++ 1 file changed, 8 insertions(+) diff --git a/railties/lib/rails/generators/rails/app/templates/config/storage_services.yml b/railties/lib/rails/generators/rails/app/templates/config/storage_services.yml index 4ec2842145..300fcfcb21 100644 --- a/railties/lib/rails/generators/rails/app/templates/config/storage_services.yml +++ b/railties/lib/rails/generators/rails/app/templates/config/storage_services.yml @@ -21,6 +21,14 @@ local: # 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 -- cgit v1.2.3