rename Active Storage service to s3 and add checksum env

This commit is contained in:
Hosmel Quintana
2025-12-05 11:57:19 -06:00
parent ac1f935d53
commit 2eeeda9bad
2 changed files with 19 additions and 15 deletions
+10 -8
View File
@@ -99,18 +99,20 @@ bin/kamal deploy
Production uses the local disk service by default. To use any other service defined in `config/storage.yml`, set `ACTIVE_STORAGE_SERVICE`.
To use the included `aws` service, set:
To use the included `s3` service, set:
- `ACTIVE_STORAGE_SERVICE=aws`
- `AWS_ACCESS_KEY_ID`
- `AWS_BUCKET` (defaults to `fizzy-#{Rails.env}-activestorage`)
- `AWS_REGION` (defaults to `us-east-1`)
- `AWS_SECRET_ACCESS_KEY`
- `ACTIVE_STORAGE_SERVICE=s3`
- `S3_ACCESS_KEY_ID`
- `S3_BUCKET` (defaults to `fizzy-#{Rails.env}-activestorage`)
- `S3_REGION` (defaults to `us-east-1`)
- `S3_SECRET_ACCESS_KEY`
Optional for S3-compatible endpoints:
- `AWS_ENDPOINT`
- `AWS_FORCE_PATH_STYLE=true`
- `S3_ENDPOINT`
- `S3_FORCE_PATH_STYLE=true`
- `S3_REQUEST_CHECKSUM_CALCULATION` (defaults to `when_supported`)
- `S3_RESPONSE_CHECKSUM_VALIDATION` (defaults to `when_supported`)
## Development