Files

39 lines
1.1 KiB
YAML
Raw Permalink Normal View History

2023-05-21 17:59:36 +03:00
disk:
service: Disk
2023-06-24 22:50:12 +03:00
root: <%= ENV['WORKDIR'] || '.' %>/attachments
2025-09-13 18:10:47 +03:00
public: <%= ENV['ACTIVE_STORAGE_PUBLIC'] == 'true' %>
2023-05-21 17:59:36 +03:00
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'] %>
2025-12-24 15:55:42 +02:00
<% if !ENV['S3_ENDPOINT'].to_s.empty? %>
endpoint: <%= ENV['S3_ENDPOINT'] %>
force_path_style: true
<% end %>
public: <%= ENV['ACTIVE_STORAGE_PUBLIC'] == 'true' %>
2023-05-21 17:59:36 +03:00
upload:
cache_control: 'public, max-age=31536000'
google:
service: GCS
2023-12-06 00:12:59 +02:00
credentials: <%= ENV['GCS_CREDENTIALS'] || '{}' %>
2023-05-21 17:59:36 +03:00
project: <%= ENV['GCS_PROJECT'] %>
bucket: <%= ENV['GCS_BUCKET'] %>
public: <%= ENV['ACTIVE_STORAGE_PUBLIC'] == 'true' %>
2023-05-21 17:59:36 +03:00
cache_control: "public, max-age=31536000"
azure:
2026-01-26 18:18:07 +02:00
service: AzureBlob
2023-05-21 17:59:36 +03:00
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' %>
2023-08-20 12:42:47 +03:00
test:
service: Disk
root: <%= Rails.root.join("tmp/storage") %>
public: true