blob: 334e779b2861b436520000d2ee468076246c4792 (
plain) (
blame)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
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
|