This commit is contained in:
2026-07-27 20:45:43 +08:00
parent 8d5c900411
commit 3d144a4640
3 changed files with 7 additions and 1 deletions
+3
View File
@@ -43,6 +43,9 @@ CAPTCHA_ENABLED=true
# CORS # CORS
CORS_ORIGINS=["*"] CORS_ORIGINS=["*"]
# Base URL (用于 favicon、回调地址等)
BASE_URL=https://ceshi.apiforeign.minzhongzc.com
# RESOURCE # RESOURCE
RESOURCE_SIGN_SECRET=EOTpDZsEgkaYWPxgtIedOO0lDlH1moTS2rnSIemjzmO3 RESOURCE_SIGN_SECRET=EOTpDZsEgkaYWPxgtIedOO0lDlH1moTS2rnSIemjzmO3
RESOURCE_SIGN_EXPIRE_SECONDS=86400 RESOURCE_SIGN_EXPIRE_SECONDS=86400
+3
View File
@@ -39,3 +39,6 @@ CAPTCHA_ENABLED=true
# CORS # CORS
CORS_ORIGINS=["http://localhost:5173", "http://localhost:3000"] CORS_ORIGINS=["http://localhost:5173", "http://localhost:3000"]
# Base URL (用于 favicon、回调地址等)
BASE_URL=https://your-domain.com
+1 -1
View File
@@ -131,7 +131,7 @@ class Settings(BaseSettings):
CAPTCHA_ENABLED: bool = True CAPTCHA_ENABLED: bool = True
BASE_URL: str = "https://ceshi.apiforeign.minzhongzc.com" BASE_URL: str = ""
CORS_ORIGINS: list[str] = ["*"] CORS_ORIGINS: list[str] = ["*"]