rename Active Storage service to s3 and add checksum env
This commit is contained in:
@@ -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
|
||||
|
||||
|
||||
Reference in New Issue
Block a user