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] = ["*"]