This commit is contained in:
fengchuanhn@gmail.com
2026-05-17 22:05:37 +08:00
parent 3db327d93b
commit 8a55976d00
8 changed files with 268 additions and 5 deletions

View File

@@ -25,6 +25,9 @@ class Settings(BaseSettings):
secret_key: str = Field(default="change-me-in-production")
access_token_expire_minutes: int = 60 * 24 * 7
"""AES-256 密钥32 字节 Base64 或 64 位十六进制;为空则关闭 API 加解密。"""
api_aes_key: str = "98cde5e64ee0da6ed0c5842f43a950aa0d8ae5087c43c8d8ee5d10bd8d571bb4"
cors_origins: str = "http://localhost:1420"
@property