Architecture: - Moved backend/app/ to diligence/ Python package - Dialect-agnostic models (Uuid + JSON, no PostgreSQL imports) - Auto-detect database: empty DATABASE_URL → SQLite at ~/.diligence/data.db - Cross-dialect migrations (inspector-based, no raw PostgreSQL DDL) - FastAPI serves pre-built React frontend for pip path - CLI entry point: diligence [--port] [--no-browser] [--data-dir] - pyproject.toml with optional deps: [postgres], [mcp], [dev] - Docker path unchanged: docker compose up -d pip install path: pip install . && diligence Docker path: ./setup.sh && docker compose up -d
23 lines
573 B
Text
23 lines
573 B
Text
# Diligence Configuration
|
|
# Copy this to .env and fill in values, or run ./setup.sh to auto-generate.
|
|
|
|
# Required — auto-generated by setup.sh
|
|
SECRET_KEY=change-me-in-production
|
|
API_TOKEN=
|
|
|
|
# Database — leave empty for SQLite (pip install path)
|
|
# Set for PostgreSQL (Docker path): postgresql+asyncpg://fitness@fitness-db:5432/fitness_rewards
|
|
DATABASE_URL=
|
|
|
|
# App
|
|
BASE_URL=http://localhost:8000
|
|
|
|
# Optional integrations
|
|
STRAVA_CLIENT_ID=
|
|
STRAVA_CLIENT_SECRET=
|
|
POLAR_CLIENT_ID=
|
|
POLAR_CLIENT_SECRET=
|
|
GROQ_API_KEY=
|
|
TELEGRAM_BOT_TOKEN=
|
|
TELEGRAM_CHAT_ID=
|
|
CRAWL_ENABLED=false
|