From 93353c4c362b047177e4ef50795948e15336e2ff Mon Sep 17 00:00:00 2001 From: "shuohigh@gmail.com" Date: Wed, 11 Jun 2025 11:08:25 +0800 Subject: [PATCH] =?UTF-8?q?=E6=9B=B4=E6=96=B0cdn=E4=B8=BB=E5=9F=9F?= =?UTF-8?q?=E5=90=8D=E9=85=8D=E7=BD=AE?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- README.md | 6 ++++++ src/BowongModalFunctions/config.py | 5 +++-- 2 files changed, 9 insertions(+), 2 deletions(-) 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运行环境")