feat: 文件上传所需要的环境变量
This commit is contained in:
@@ -16,6 +16,8 @@ class EnvSettings(BaseSettings):
|
||||
|
||||
server_port: int = Field(..., env="SERVER_PORT")
|
||||
server_enable_cors: bool = Field(..., env="SERVER_ENABLE_CORS")
|
||||
server_file_save_path: str = Field(..., env='SERVER_FILE_SAVE_PATH')
|
||||
server_file_public_path: str = Field(..., env='SERVER_FILE_PUBLIC_PATH')
|
||||
|
||||
class Config:
|
||||
env_file = ".env"
|
||||
|
||||
Reference in New Issue
Block a user