chore: add S3-compatible storage configuration options to environment files (#219)

This commit is contained in:
Gabriel Jablonski 2026-02-21 18:18:00 -03:00 committed by GitHub
parent 3b8a38b153
commit 2d4e851de7
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194
2 changed files with 14 additions and 1 deletions

View File

@ -137,6 +137,17 @@ AWS_ACCESS_KEY_ID=
AWS_SECRET_ACCESS_KEY=
AWS_REGION=
# S3-compatible storage (e.g., Cloudflare R2, MinIO, DigitalOcean Spaces)
# Set ACTIVE_STORAGE_SERVICE=s3_compatible to use this
# STORAGE_ACCESS_KEY_ID=
# STORAGE_SECRET_ACCESS_KEY=
# STORAGE_REGION=
# STORAGE_BUCKET_NAME=
# STORAGE_ENDPOINT=
# STORAGE_FORCE_PATH_STYLE=true
# STORAGE_REQUEST_CHECKSUM_CALCULATION=when_required
# STORAGE_RESPONSE_CHECKSUM_VALIDATION=when_required
# Log settings
# Disable if you want to write logs to a file
RAILS_LOG_TO_STDOUT=true

View File

@ -28,7 +28,7 @@ microsoft:
storage_access_key: <%= ENV.fetch('AZURE_STORAGE_ACCESS_KEY', '') %>
container: <%= ENV.fetch('AZURE_STORAGE_CONTAINER', '') %>
# s3 compatible service such as DigitalOcean Spaces, Minio.
# s3 compatible service such as Cloudflare R2, DigitalOcean Spaces, Minio.
s3_compatible:
service: S3
access_key_id: <%= ENV.fetch('STORAGE_ACCESS_KEY_ID', '') %>
@ -37,6 +37,8 @@ s3_compatible:
bucket: <%= ENV.fetch('STORAGE_BUCKET_NAME', '') %>
endpoint: <%= ENV.fetch('STORAGE_ENDPOINT', '') %>
force_path_style: <%= ENV.fetch('STORAGE_FORCE_PATH_STYLE', false) %>
request_checksum_calculation: <%= ENV.fetch('STORAGE_REQUEST_CHECKSUM_CALCULATION', 'when_required') %>
response_checksum_validation: <%= ENV.fetch('STORAGE_RESPONSE_CHECKSUM_VALIDATION', 'when_required') %>
# mirror:
# service: Mirror