forked from bigbluebutton/greenlight
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathstorage.yml
51 lines (46 loc) · 1.75 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
test:
service: Disk
root: <%= Rails.root.join("tmp/storage") %>
local:
service: Disk
root: <%= Rails.root.join("storage") %>
# Use rails credentials:edit to set the AWS secrets (as aws:access_key_id|secret_access_key)
amazon:
service: S3
access_key_id: <%= ENV['AWS_ACCESS_KEY_ID'] %>
secret_access_key: <%= ENV['AWS_SECRET_ACCESS_KEY'] %>
region: <%= ENV['AWS_REGION'] %>
bucket: <%= ENV['AWS_BUCKET'] %>
s3:
service: S3
endpoint: <%= ENV['S3_ENDPOINT'] %>
access_key_id: <%= ENV['S3_ACCESS_KEY_ID'] %>
secret_access_key: <%= ENV['S3_SECRET_ACCESS_KEY'] %>
region: <%= ENV['S3_REGION'] %>
bucket: <%= ENV['S3_BUCKET'] %>
# Remember not to checkin your GCS keyfile to a repository
google:
service: GCS
project: "<%= ENV['GCS_PROJECT'] %>"
bucket: "<%= ENV['GCS_BUCKET'] %>"
credentials:
type: 'service_account'
project_id: "<%= ENV['GCS_PROJECT_ID'] %>"
private_key_id: "<%= ENV['GCS_PRIVATE_KEY_ID'] %>"
private_key: "<%= ENV['GCS_PRIVATE_KEY']&.lines&.join("\\n") %>"
client_email: "<%= ENV['GCS_CLIENT_EMAIL'] %>"
client_id: "<%= ENV['GCS_CLIENT_ID'] %>"
auth_uri: 'https://accounts.google.com/o/oauth2/auth'
token_uri: 'https://accounts.google.com/o/oauth2/token'
auth_provider_x509_cert_url: 'https://www.googleapis.com/oauth2/v1/certs'
client_x509_cert_url: "<%= ENV['GCS_CLIENT_CERT'] %>"
# 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 ]