diff --git a/weaverse/settings.py b/weaverse/settings.py index adf14f7..3ba8b1e 100644 --- a/weaverse/settings.py +++ b/weaverse/settings.py @@ -135,3 +135,15 @@ "SERVE_URLCONF": "weaverse.urls", "EXTERNAL_DOCS": {"description": "Weaverse GitHub", "url": ""}, } + +# S3 설정 +AWS_ACCESS_KEY_ID = os.getenv("AWS_ACCESS_KEY_ID") +AWS_SECRET_ACCESS_KEY = os.getenv("AWS_SECRET_ACCESS_KEY") +AWS_STORAGE_BUCKET_NAME = os.getenv("AWS_STORAGE_BUCKET_NAME") +AWS_S3_REGION_NAME = os.getenv("AWS_S3_REGION_NAME") +AWS_S3_CUSTOM_DOMAIN = f"{AWS_STORAGE_BUCKET_NAME}.s3.amazonaws.com" +AWS_S3_OBJECT_PARAMETERS = { + "CacheControl": "max-age=86400", +} + +DEFAULT_FILE_STORAGE = "storages.backends.s3boto3.S3Boto3Storage"