Skip to content

Commit

Permalink
AWS_S3_OBJECT_PARAMETERS
Browse files Browse the repository at this point in the history
  • Loading branch information
SKairinos committed Dec 6, 2024
1 parent 87f3213 commit 1dace08
Showing 1 changed file with 4 additions and 1 deletion.
5 changes: 4 additions & 1 deletion codeforlife/settings/third_party.py
Original file line number Diff line number Diff line change
Expand Up @@ -2,6 +2,7 @@
This file contains custom settings defined by third party extensions.
"""

import json
import os

from .django import DEBUG
Expand Down Expand Up @@ -30,7 +31,9 @@
# https://django-storages.readthedocs.io/en/latest/backends/amazon-S3.html#settings

AWS_STORAGE_BUCKET_NAME = os.getenv("AWS_STORAGE_BUCKET_NAME")
AWS_S3_OBJECT_PARAMETERS = os.getenv("AWS_S3_OBJECT_PARAMETERS", {})
AWS_S3_OBJECT_PARAMETERS = json.loads(
os.getenv("AWS_S3_OBJECT_PARAMETERS", "{}")
)
AWS_DEFAULT_ACL = os.getenv("AWS_DEFAULT_ACL")
AWS_QUERYSTRING_AUTH = bool(int(os.getenv("AWS_QUERYSTRING_AUTH", "1")))
AWS_S3_MAX_MEMORY_SIZE = int(os.getenv("AWS_S3_MAX_MEMORY_SIZE", "0"))
Expand Down

0 comments on commit 1dace08

Please sign in to comment.