diff --git a/core/__pycache__/settings.cpython-39.pyc b/core/__pycache__/settings.cpython-39.pyc index 57b9ecb..0ef00c1 100644 Binary files a/core/__pycache__/settings.cpython-39.pyc and b/core/__pycache__/settings.cpython-39.pyc differ diff --git a/core/__pycache__/urls.cpython-39.pyc b/core/__pycache__/urls.cpython-39.pyc index 069ca0f..19dbb95 100644 Binary files a/core/__pycache__/urls.cpython-39.pyc and b/core/__pycache__/urls.cpython-39.pyc differ diff --git a/core/settings.py b/core/settings.py index 488fc3a..6fb4fbe 100644 --- a/core/settings.py +++ b/core/settings.py @@ -241,13 +241,19 @@ AWS_STORAGE_BUCKET_NAME = os.environ.get('AWS_STORAGE_BUCKET_NAME') AWS_S3_REGION_NAME = 'us-east-1' AWS_S3_CUSTOM_DOMAIN = f'{AWS_STORAGE_BUCKET_NAME}.s3.amazonaws.com' +AWS_S3_SIGNATURE_VERSION = 's3v4' +AWS_S3_FILE_OVERWRITE = False +AWS_DEFAULT_ACL = None # Recommended to prevent setting public ACL by default +AWS_S3_OBJECT_PARAMETERS = { + 'CacheControl': 'max-age=86400', # Set cache control headers +} # For serving static files directly from S3 AWS_S3_USE_SSL = True AWS_S3_VERIFY = True -AWS_S3_URL = "https://assets.hacksarena.s3.amazonaws.com/" +AWS_S3_URL = "https://assests.hacksarena.s3.amazonaws.com/" -STATIC_URL = f"{AWS_S3_URL}static/" -MEDIA_URL = f"{AWS_S3_URL}media/" +STATIC_URL = "https://assests.hacksarena.s3.amazonaws.com/static/" +MEDIA_URL = "https://assests.hacksarena.s3.amazonaws.com/media/" STATICFILES_STORAGE = 'storages.backends.s3boto3.S3Boto3Storage' DEFAULT_FILE_STORAGE = 'storages.backends.s3boto3.S3Boto3Storage' \ No newline at end of file