forked from demarches-simplifiees/demarches-simplifiees.fr
-
Notifications
You must be signed in to change notification settings - Fork 4
/
Copy pathstorage.yml
51 lines (47 loc) · 1.44 KB
/
storage.yml
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
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
local:
service: Disk
root: <%= Rails.root.join("storage") %>
test:
service: Disk
root: <%= Rails.root.join("tmp/storage") %>
openstack:
service: OpenStack
container: "<%= ENV['FOG_ACTIVESTORAGE_DIRECTORY'] %>"
credentials:
openstack_auth_url: "<%= ENV['FOG_OPENSTACK_URL'] %>"
openstack_api_key: "<%= ENV['FOG_OPENSTACK_API_KEY'] %>"
openstack_username: "<%= ENV['FOG_OPENSTACK_USERNAME'] %>"
openstack_region: "<%= ENV['FOG_OPENSTACK_REGION'] %>"
openstack_temp_url_key: "<%= ENV['FOG_OPENSTACK_TEMP_URL_KEY'] %>"
s3:
service: S3
endpoint: "<%= ENV['S3_ENDPOINT'] %>"
bucket: "<%= ENV.fetch('S3_BUCKET','') %>"
access_key_id: "<%= ENV['S3_ACCESS_KEY'] %>"
secret_access_key: "<%= ENV['S3_SECRET_KEY'] %>"
region: "<%= ENV['S3_REGION'] %>"
force_path_style: true
new_s3:
service: S3
endpoint: "<%= ENV['S3_NEW_ENDPOINT'] %>"
bucket: "<%= ENV.fetch('S3_NEW_BUCKET','') %>"
access_key_id: "<%= ENV['S3_NEW_ACCESS_KEY'] %>"
secret_access_key: "<%= ENV['S3_NEW_SECRET_KEY'] %>"
region: "<%= ENV['S3_NEW_REGION'] %>"
force_path_style: true
local_mirror:
service: Mirror
primary: local
mirrors:
- s3
s3_mirror:
service: Mirror
primary: s3
mirrors:
- new_s3
amazon:
service: S3
access_key_id: <%= ENV.fetch("S3_ACCESS_KEY_ID", "") %>
secret_access_key: <%= ENV.fetch("S3_SECRET_ACCESS_KEY", "") %>
region: <%= ENV.fetch("S3_REGION", "") %>
bucket: <%= ENV.fetch("S3_BUCKET", "") %>