feat(home): 이미지 업로드에 크기·개수 상한과 task 직렬화 락 도입
This commit is contained in:
1 parent
8096837b13
commit
f87cd07d5e
5 files changed
+1112
-168
No files matched your search
@@ -145,6 +145,40 @@ class AzureBlobSettings(BaseSettings):
|
||||
default="https://ado2mediastoragepublic.blob.core.windows.net/ado2-media-public-access/ado2-media-original",
|
||||
description="Azure Blob Storage 기본 URL",
|
||||
)
|
||||
AZURE_BLOB_UPLOAD_BLOCK_SIZE_BYTES: int = Field(
|
||||
default=4 * 1024 * 1024,
|
||||
gt=0,
|
||||
description="Azure Block Blob 업로드 블록 크기 (bytes)",
|
||||
)
|
||||
AZURE_BLOB_API_VERSION: str = Field(
|
||||
default="2023-11-03",
|
||||
description="Azure Blob Storage REST API x-ms-version",
|
||||
)
|
||||
IMAGE_UPLOAD_MAX_FILE_SIZE_BYTES: int = Field(
|
||||
default=15 * 1024 * 1024,
|
||||
gt=0,
|
||||
description="이미지 업로드 파일 1개당 최대 크기 (bytes)",
|
||||
)
|
||||
IMAGE_UPLOAD_MAX_REQUEST_SIZE_BYTES: int = Field(
|
||||
default=20 * 1024 * 1024,
|
||||
gt=0,
|
||||
description="한 이미지 업로드 요청에 포함할 수 있는 파일 합계 최대 크기 (bytes)",
|
||||
)
|
||||
IMAGE_UPLOAD_LOCK_TIMEOUT_SECONDS: int = Field(
|
||||
default=15,
|
||||
ge=1,
|
||||
description="동일 task 이미지 append 직렬화 락 대기 시간 (초)",
|
||||
)
|
||||
IMAGE_UPLOAD_MAX_CONCURRENT_LOCKS: int = Field(
|
||||
default=10,
|
||||
ge=1,
|
||||
description="worker별 이미지 upload named lock 동시 점유 상한",
|
||||
)
|
||||
IMAGE_UPLOAD_MAX_TASK_IMAGES: int = Field(
|
||||
default=100,
|
||||
ge=1,
|
||||
description="한 task에 누적할 수 있는 활성 이미지 최대 개수",
|
||||
)
|
||||
|
||||
model_config = _base_config
|
||||
|
||||
@@ -175,10 +209,7 @@ class CreatomateSettings(BaseSettings):
|
||||
default=False,
|
||||
description="Creatomate 자체 자동 가사 생성 기능 사용 여부",
|
||||
)
|
||||
LYRIC_SUBTITLE: bool = Field(
|
||||
default=False,
|
||||
description="영상 가사 표기 여부"
|
||||
)
|
||||
LYRIC_SUBTITLE: bool = Field(default=False, description="영상 가사 표기 여부")
|
||||
|
||||
model_config = _base_config
|
||||
|
||||
|
||||
Reference in new issue
Block a user