From 3d144a4640522e6994c0926259989faa99fa70ad Mon Sep 17 00:00:00 2001 From: wwwwwwwww <526125649@qq.com> Date: Mon, 27 Jul 2026 20:45:43 +0800 Subject: [PATCH] 1 --- video-gen-api/.env | 3 +++ video-gen-api/.env.example | 3 +++ video-gen-api/app/config.py | 2 +- 3 files changed, 7 insertions(+), 1 deletion(-) diff --git a/video-gen-api/.env b/video-gen-api/.env index cc011046..9432b464 100644 --- a/video-gen-api/.env +++ b/video-gen-api/.env @@ -43,6 +43,9 @@ CAPTCHA_ENABLED=true # CORS CORS_ORIGINS=["*"] +# Base URL (用于 favicon、回调地址等) +BASE_URL=https://ceshi.apiforeign.minzhongzc.com + # RESOURCE RESOURCE_SIGN_SECRET=EOTpDZsEgkaYWPxgtIedOO0lDlH1moTS2rnSIemjzmO3 RESOURCE_SIGN_EXPIRE_SECONDS=86400 diff --git a/video-gen-api/.env.example b/video-gen-api/.env.example index f3ea311b..efeec0e1 100644 --- a/video-gen-api/.env.example +++ b/video-gen-api/.env.example @@ -39,3 +39,6 @@ CAPTCHA_ENABLED=true # CORS CORS_ORIGINS=["http://localhost:5173", "http://localhost:3000"] + +# Base URL (用于 favicon、回调地址等) +BASE_URL=https://your-domain.com diff --git a/video-gen-api/app/config.py b/video-gen-api/app/config.py index eb2eb956..53a2e53e 100644 --- a/video-gen-api/app/config.py +++ b/video-gen-api/app/config.py @@ -131,7 +131,7 @@ class Settings(BaseSettings): CAPTCHA_ENABLED: bool = True - BASE_URL: str = "https://ceshi.apiforeign.minzhongzc.com" + BASE_URL: str = "" CORS_ORIGINS: list[str] = ["*"]