aboutsummaryrefslogtreecommitdiffstats
path: root/lib/active_vault/config/sites.yml
diff options
context:
space:
mode:
Diffstat (limited to 'lib/active_vault/config/sites.yml')
-rw-r--r--lib/active_vault/config/sites.yml25
1 files changed, 25 insertions, 0 deletions
diff --git a/lib/active_vault/config/sites.yml b/lib/active_vault/config/sites.yml
new file mode 100644
index 0000000000..334e779b28
--- /dev/null
+++ b/lib/active_vault/config/sites.yml
@@ -0,0 +1,25 @@
+# Configuration should be something like this:
+#
+# config/environments/development.rb
+# config.active_vault.site = :local
+#
+# config/environments/production.rb
+# config.active_vault.site = :amazon
+local:
+ site: Disk
+ root: <%%= File.join(Dir.tmpdir, "active_vault") %>
+
+amazon:
+ site: S3
+ access_key_id: <%%= Rails.application.secrets.aws[:access_key_id] %>
+ secret_access_key: <%%= Rails.application.secrets.aws[:secret_access_key] %>
+ region: us-east-1
+ bucket: <%= Rails.application.class.name.remove(/::Application$/).underscore %>
+
+google:
+ site: GCS
+
+mirror:
+ site: Mirror
+ primary: amazon
+ secondaries: google