feat:adjust env,文件保存路径以及文件访问路径
This commit is contained in:
@@ -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"
|
||||
|
||||
Reference in New Issue
Block a user