diff options
author | Mike Gunderloy <MikeG1@larkfarm.com> | 2017-08-01 14:29:17 -0500 |
---|---|---|
committer | GitHub <noreply@github.com> | 2017-08-01 14:29:17 -0500 |
commit | 55e610455dc7abefb3b94a0cd76fa2b86ffc5921 (patch) | |
tree | 7b60c4b79a31625a1479dac543357e67eec7b846 /railties | |
parent | d66fadeb676eec32670b944cdf9fb273deba31aa (diff) | |
download | rails-55e610455dc7abefb3b94a0cd76fa2b86ffc5921.tar.gz rails-55e610455dc7abefb3b94a0cd76fa2b86ffc5921.tar.bz2 rails-55e610455dc7abefb3b94a0cd76fa2b86ffc5921.zip |
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
Diffstat (limited to 'railties')
-rw-r--r-- | railties/lib/rails/generators/rails/app/templates/config/storage_services.yml | 8 |
1 files changed, 8 insertions, 0 deletions
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 |