第一次提交
This commit is contained in:
9
test/server/core/config.py
Normal file
9
test/server/core/config.py
Normal file
@@ -0,0 +1,9 @@
|
||||
# 可放项目配置,例如环境变量、数据库连接信息
|
||||
from pydantic_settings import BaseSettings
|
||||
|
||||
class Settings(BaseSettings):
|
||||
app_name: str = "My FastAPI App"
|
||||
host: str = '0.0.0.0'
|
||||
debug: bool = True
|
||||
|
||||
settings = Settings()
|
Reference in New Issue
Block a user