Moved to S3
This commit is contained in:
@@ -27,6 +27,15 @@ class Settings(BaseSettings):
|
||||
ALLOWED_IMAGE_EXTENSIONS: set = {"jpg", "jpeg", "png", "gif", "webp"}
|
||||
ALLOWED_VIDEO_EXTENSIONS: set = {"mp4", "webm", "mov"}
|
||||
|
||||
# S3 Storage (FirstVDS)
|
||||
S3_ENABLED: bool = False
|
||||
S3_BUCKET_NAME: str = ""
|
||||
S3_REGION: str = "ru-1"
|
||||
S3_ACCESS_KEY_ID: str = ""
|
||||
S3_SECRET_ACCESS_KEY: str = ""
|
||||
S3_ENDPOINT_URL: str = ""
|
||||
S3_PUBLIC_URL: str = ""
|
||||
|
||||
@property
|
||||
def ALLOWED_EXTENSIONS(self) -> set:
|
||||
return self.ALLOWED_IMAGE_EXTENSIONS | self.ALLOWED_VIDEO_EXTENSIONS
|
||||
|
||||
Reference in New Issue
Block a user