forked from docusealco/docuseal
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathstorage.yml
34 lines (30 loc) · 1 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
disk:
service: Disk
root: <%= ENV['WORKDIR'] || '.' %>/attachments
public: true
aws_s3:
service: S3
access_key_id: <%= ENV['AWS_ACCESS_KEY_ID'] %>
secret_access_key: <%= ENV['AWS_SECRET_ACCESS_KEY'] %>
region: <%= ENV['AWS_REGION'] || 'us-east-1' %>
bucket: <%= ENV['S3_ATTACHMENTS_BUCKET'] %>
public: <%= ENV['ACTIVE_STORAGE_PUBLIC'] == 'true' %>
upload:
cache_control: 'public, max-age=31536000'
google:
service: GCS
credentials: <%= JSON.parse(ENV['GCS_CREDENTIALS'] || '{}') %>
project: <%= ENV['GCS_PROJECT'] %>
bucket: <%= ENV['GCS_BUCKET'] %>
public: <%= ENV['ACTIVE_STORAGE_PUBLIC'] == 'true' %>
cache_control: "public, max-age=31536000"
azure:
service: AzureStorage
storage_account_name: <%= ENV['AZURE_STORAGE_ACCOUNT_NAME'] %>
storage_access_key: <%= ENV['AZURE_STORAGE_ACCESS_KEY'] %>
container: <%= ENV['AZURE_CONTAINER'] %>
public: <%= ENV['ACTIVE_STORAGE_PUBLIC'] == 'true' %>
test:
service: Disk
root: <%= Rails.root.join("tmp/storage") %>
public: true