feat:adjust env,文件保存路径以及文件访问路径

This commit is contained in:
martsforever
2025-08-29 23:47:33 +08:00
parent ffe6c5c9e1
commit 15bf202b85
2 changed files with 6 additions and 0 deletions
+3
View File
@@ -33,6 +33,9 @@ class Settings(BaseSettings):
jwt_global_enable: bool = Field(..., env="JWT_GLOBAL_ENABLE")
jwt_white_list: List[str] = Field(..., env="JWT_WHITE_LIST")
file_save_path: str = Field(..., env='FILE_SAVE_PATH')
file_public_path: str = Field(..., env='FILE_PUBLIC_PATH')
class Config:
env_file = ".env"
env_file_encoding = "utf-8"