简单构建高并发
This commit is contained in:
14
app/config.py
Normal file
14
app/config.py
Normal file
@ -0,0 +1,14 @@
|
||||
|
||||
from pydantic import BaseModel
|
||||
|
||||
class Settings(BaseModel):
|
||||
# PostgreSQL 数据库连接URL
|
||||
# 格式: postgresql+asyncpg://user:password@host:port/database
|
||||
DATABASE_URL: str = "postgresql+asyncpg://postgres:123456@localhost:5432/face_db"
|
||||
|
||||
# Milvus 连接信息 (将在第二阶段使用)
|
||||
MILVUS_HOST: str = "localhost"
|
||||
MILVUS_PORT: int = 19530
|
||||
|
||||
# 创建一个全局配置实例
|
||||
settings = Settings()
|
Reference in New Issue
Block a user