feat: Multi-user system with PostgreSQL - WIP temporary save

This commit is contained in:
TIANHE
2026-01-14 05:29:55 +08:00
parent 996e3b38fe
commit 61a5e5e6aa
68 changed files with 91057 additions and 1920 deletions
+13 -5
View File
@@ -8,6 +8,13 @@ SECRET_KEY=quantdinger-secret-key-change-me
ADMIN_USER=quantdinger
ADMIN_PASSWORD=123456
# =========================
# Demo Mode
# =========================
# Set to true to enable read-only mode for public demo.
# Blocks all POST/PUT/DELETE requests except login.
IS_DEMO_MODE=false
# =========================
# Network / App
# =========================
@@ -16,12 +23,13 @@ PYTHON_API_PORT=5000
PYTHON_API_DEBUG=False
# =========================
# Database (SQLite)
# Database Configuration (PostgreSQL)
# =========================
# 主库文件路径(可选)
# - 不设置时,默认使用:backend_api_python/data/quantdinger.db
# - Docker 推荐:/app/data/quantdinger.db
SQLITE_DATABASE_FILE=
# PostgreSQL connection URL (required for multi-user mode)
# Format: postgresql://user:password@host:port/dbname
# Docker: uses this default, no changes needed
# Local: change 'postgres' to 'localhost' and update password
DATABASE_URL=postgresql://quantdinger:quantdinger123@postgres:5432/quantdinger
# =========================
# Pending orders worker (optional)