-
Notifications
You must be signed in to change notification settings - Fork 1
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
* Removed a couple of files not needed now that we are ditching ActiveStorage from our code * Removed a few more references to ActiveStorage::Blob * Remove more dangling references to ActiveStorage::Blob * Re-added a storage.yml with the default Rails values. Rails requires this file. * Reset the active_storage value to local (the default on a Rails app) * Proper default for test env
- Loading branch information
1 parent
65e2031
commit 18847c1
Showing
9 changed files
with
9 additions
and
185 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,61 +1,7 @@ | ||
local: &local | ||
service: 'Disk' | ||
root: <%= Rails.root.join("storage") %> | ||
|
||
amazon: &amazon | ||
service: 'S3' | ||
access_key_id: <%= ENV['AWS_S3_KEY_ID'] || 'not-used-access_key_id' %> | ||
secret_access_key: <%= ENV['AWS_S3_SECRET_KEY'] || 'not-used-secret_access_key' %> | ||
region: <%= S3QueryService.pre_curation_config.fetch(:region) %> | ||
bucket: <%= S3QueryService.pre_curation_config.fetch(:bucket) %> | ||
|
||
development: &development | ||
# Default to the local file system (this avoids coercion into AWS) | ||
# AWS is the default as the will not really work without AWS | ||
# AWS can be enabled here should that be preferred for development | ||
<<: *amazon | ||
|
||
amazon_pre_curation: | ||
<% if Rails.env.development? %> | ||
<<: *development | ||
<% else %> | ||
<<: *amazon | ||
region: <%= S3QueryService.pre_curation_config.fetch(:region) %> | ||
bucket: <%= S3QueryService.pre_curation_config.fetch(:bucket) %> | ||
<% end %> | ||
|
||
test: &test | ||
<<: *amazon | ||
access_key_id: 'not-used-access_key_id' | ||
secret_access_key: 'not-used-secret_access_key' | ||
|
||
staging: *amazon | ||
test: | ||
service: Disk | ||
root: <%= Rails.root.join("tmp/storage") %> | ||
|
||
production: *amazon | ||
|
||
# Use rails credentials:edit to set the AWS secrets (as aws:access_key_id|secret_access_key) | ||
# amazon: | ||
# service: S3 | ||
# access_key_id: <%= Rails.application.credentials.dig(:aws, :access_key_id) %> | ||
# secret_access_key: <%= Rails.application.credentials.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 | ||
# credentials: <%= Rails.root.join("path/to/gcs.keyfile") %> | ||
# bucket: your_own_bucket | ||
|
||
# Use rails credentials:edit to set the Azure Storage secret (as azure_storage:storage_access_key) | ||
# microsoft: | ||
# service: AzureStorage | ||
# storage_account_name: your_account_name | ||
# storage_access_key: <%= Rails.application.credentials.dig(:azure_storage, :storage_access_key) %> | ||
# container: your_container_name | ||
|
||
# mirror: | ||
# service: Mirror | ||
# primary: local | ||
# mirrors: [ amazon, google, microsoft ] | ||
local: | ||
service: Disk | ||
root: <%= Rails.root.join("storage") %> |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file was deleted.
Oops, something went wrong.