Files
Face-Verifying-HighPost/app/config.py

15 lines
424 B
Python
Raw Normal View History

2025-07-29 18:15:35 +08:00
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()