prepare fastapi root layout for server deployment

This commit is contained in:
刘金宝
2026-06-04 10:55:23 +08:00
parent eb43573a44
commit b46e43aadc
103 changed files with 347 additions and 197 deletions
+15 -15
View File
@@ -1,32 +1,32 @@
APP_NAME=Medical Consultation Agent
APP_ENV=local
APP_DEBUG=true
APP_ROOT_PATH=
API_V1_PREFIX=/api/v1
APP_HOST=127.0.0.1
APP_PORT=9000
# MySQL
# MYSQL_URL keeps the original async style URL for future async SQLAlchemy.
# DATABASE_URL is optional; the current sync backend will normalize MYSQL_URL to mysql+pymysql automatically.
MYSQL_URL=mysql+aiomysql://root:<password>@mysql:3306/medical_platform?charset=utf8mb4
DATABASE_URL=mysql+pymysql://root:<password>@mysql:3306/medical_platform?charset=utf8mb4
# Redis
# Local MySQL and Redis
DATABASE_URL=mysql+pymysql://root:CHANGE_ME@127.0.0.1:3306/medical?charset=utf8mb4
RUNTIME_MEMORY_BACKEND=redis
REDIS_URL=redis://redis:6379/0
RUNTIME_MEMORY_FALLBACK_ENABLED=true
RUNTIME_MEMORY_TTL_SECONDS=7200
REDIS_URL=redis://127.0.0.1:6379/0
# Django user center auth for frontend integration
AUTH_USER_ME_URL=http://django:8000/api/user/users/me/
# Django user center
AUTH_VALIDATE_ENABLED=true
AUTH_USER_ME_URL=http://127.0.0.1:8000/api/user/users/me/
AUTH_TIMEOUT_SECONDS=5
AUTH_CACHE_TTL_SECONDS=300
# Browser origins, separated by commas
CORS_ALLOW_ORIGINS=http://127.0.0.1:5173,http://localhost:5173
CORS_ALLOW_ORIGIN_REGEX=^http://(127\.0\.0\.1|localhost|192\.168\.\d+\.\d+):\d+$
# OpenAI-compatible LLM
LLM_BASE_URL=https://api.deepseek.com/chat/completions
LLM_API_KEY=
LLM_MODEL=deepseek-v4-pro
LLM_FAST_MODEL=deepseek-v4-pro
LLM_REASON_MODEL=deepseek-v4-pro
LLM_MODEL=deepseek-chat
LLM_FAST_MODEL=deepseek-chat
LLM_REASON_MODEL=deepseek-reasoner
LLM_TIMEOUT_SECONDS=45
LLM_CHAT_TIMEOUT_SECONDS=20
LLM_STREAM_FIRST_TOKEN_TIMEOUT_SECONDS=15