🐛(backend) add AWS_S3_SIGNATURE_VERSION environment variable support
Add support for the `AWS_S3_SIGNATURE_VERSION` environment variable to allow configuring S3 signature version for compatibility with S3-compatible storage services like Linode Object Storage. Fixes #1788 Signed-off-by: dtinth on MBP M1 <dtinth@spacet.me>
This commit is contained in:
committed by
GitHub
parent
db014cfc6f
commit
709076067b
@@ -21,6 +21,7 @@ These are the environment variables you can set for the `impress-backend` contai
|
|||||||
| AWS_S3_ENDPOINT_URL | S3 endpoint | |
|
| AWS_S3_ENDPOINT_URL | S3 endpoint | |
|
||||||
| AWS_S3_REGION_NAME | Region name for s3 endpoint | |
|
| AWS_S3_REGION_NAME | Region name for s3 endpoint | |
|
||||||
| AWS_S3_SECRET_ACCESS_KEY | Access key for s3 endpoint | |
|
| AWS_S3_SECRET_ACCESS_KEY | Access key for s3 endpoint | |
|
||||||
|
| AWS_S3_SIGNATURE_VERSION | S3 signature version (`s3v4` or `s3`) | s3v4 |
|
||||||
| AWS_STORAGE_BUCKET_NAME | Bucket name for s3 endpoint | impress-media-storage |
|
| AWS_STORAGE_BUCKET_NAME | Bucket name for s3 endpoint | impress-media-storage |
|
||||||
| CACHES_DEFAULT_TIMEOUT | Cache default timeout | 30 |
|
| CACHES_DEFAULT_TIMEOUT | Cache default timeout | 30 |
|
||||||
| CACHES_DEFAULT_KEY_PREFIX | The prefix used to every cache keys. | docs |
|
| CACHES_DEFAULT_KEY_PREFIX | The prefix used to every cache keys. | docs |
|
||||||
|
|||||||
@@ -169,6 +169,11 @@ class Base(Configuration):
|
|||||||
environ_name="AWS_STORAGE_BUCKET_NAME",
|
environ_name="AWS_STORAGE_BUCKET_NAME",
|
||||||
environ_prefix=None,
|
environ_prefix=None,
|
||||||
)
|
)
|
||||||
|
AWS_S3_SIGNATURE_VERSION = values.Value(
|
||||||
|
"s3v4",
|
||||||
|
environ_name="AWS_S3_SIGNATURE_VERSION",
|
||||||
|
environ_prefix=None,
|
||||||
|
)
|
||||||
|
|
||||||
# Document images
|
# Document images
|
||||||
DOCUMENT_IMAGE_MAX_SIZE = values.IntegerValue(
|
DOCUMENT_IMAGE_MAX_SIZE = values.IntegerValue(
|
||||||
|
|||||||
Reference in New Issue
Block a user