[feat] negodata/backend: 상품 이미지 업로드(Azure Blob) 엔드포인트 추가
POST /v1/item/image — SAS 토큰을 URL에 붙여 httpx PUT 으로 Azure Blob 업로드. 이미지 타입/용량 검증 + IMAGE_* 에러코드. config 에 azure_blob_base_url/sas/root 추가. Co-Authored-By: Claude Opus 4.8 (1M context) <noreply@anthropic.com>
This commit is contained in:
1 parent
49e682d693
commit
3280cab088
10 files changed
+287
-15
No files matched your search
@@ -36,3 +36,12 @@ access_key = "<JWT_ACCESS_SECRET>"
|
||||
refresh_key = "<JWT_REFRESH_SECRET>"
|
||||
access_expire_min = 30
|
||||
refresh_expire_day = 7
|
||||
|
||||
# 상품 이미지 업로드 대상(Azure Blob Storage).
|
||||
# infinith 와 동일 계정/컨테이너 SAS 를 그대로 복사해 쓰고, blob_root 로 디렉터리만 분리한다.
|
||||
# 값 출처: o2o-infinith-backend/.env 의 AZURE_BLOB_BASE_URL / AZURE_BLOB_SAS_TOKEN
|
||||
[StorageConfig]
|
||||
azure_blob_base_url = "<AZURE_BLOB_BASE_URL>"
|
||||
azure_blob_sas_token = "<AZURE_BLOB_SAS_TOKEN>"
|
||||
blob_root = "negodata"
|
||||
max_image_mb = 4
|
||||
Reference in new issue
Block a user