diff --git a/README.md b/README.md index 14e7d2b..5e2f625 100644 --- a/README.md +++ b/README.md @@ -12,6 +12,12 @@ modal deploy -m cluster.app uvicorn BowongModalFunctions.api:web_app --host 0.0.0.0 --port 8080 ``` +## Cloudflare_KV + + dev : f24d396e0daa418e89a1d7074b435c24 + test : 527a61fea05543f2a49d62889ba868c5 + prod : f3fce39ab6f4484cb65bc5cc2e7343e2 + # Pip ## 构建 diff --git a/src/BowongModalFunctions/config.py b/src/BowongModalFunctions/config.py index 9b6e2ab..681a3c0 100644 --- a/src/BowongModalFunctions/config.py +++ b/src/BowongModalFunctions/config.py @@ -12,8 +12,9 @@ class WorkerConfig(BaseSettings): S3_region: str = Field(default='ap-northeast-2', description="S3挂载桶的地域") S3_bucket_name: str = Field(default='modal-media-cache', description="集群挂载的S3存储桶") S3_mount_dir: str = Field(default='/mntS3', description="集群S3存储桶挂载在本地的根目录") - S3_cdn_endpoint: str = Field(default="https://d2nj71io21vkj2.cloudfront.net", - description="集群挂载S3存储桶的对应AWS Cloudfront CDN") + Cloudfront_cdn_endpoint: str = Field(default='https://d2nj71io21vkj2.cloudfront.net', description="集群挂载S3存储桶的对应AWS Cloudfront CDN") + S3_cdn_endpoint: str = Field(default="https://cdn.roasmax.cn", + description="优先使用的集群挂载S3存储桶的对应CDN") modal_kv_name: str = Field(default='media-cache', description="Modal视频缓存KV库") modal_product_kv_name: str = Field(default='live-product-cache', description="Modal抖音直播间商品缓存KV库") modal_environment: str = Field(default="dev", description="Modal worker运行环境")