aboutsummaryrefslogtreecommitdiffstats
path: root/config
diff options
context:
space:
mode:
Diffstat (limited to 'config')
-rw-r--r--config/storage_services.yml27
1 files changed, 27 insertions, 0 deletions
diff --git a/config/storage_services.yml b/config/storage_services.yml
new file mode 100644
index 0000000000..c80a3e8453
--- /dev/null
+++ b/config/storage_services.yml
@@ -0,0 +1,27 @@
+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
+ mirrors: [ amazon, google ]