From 6b2a25357373500b5f7ca40ca125f1341feffd3e Mon Sep 17 00:00:00 2001 From: latte Date: Mon, 12 Jan 2026 15:33:08 +0100 Subject: [PATCH] Add database configuration to .env.example --- .env.example | 20 ++++++++++++++++++++ 1 file changed, 20 insertions(+) diff --git a/.env.example b/.env.example index 8768761..a95cbb9 100644 --- a/.env.example +++ b/.env.example @@ -49,6 +49,26 @@ BOT_STATUS=for mentions # Number of messages to remember per user (higher = more context, more tokens) MAX_CONVERSATION_HISTORY=20 +# Minutes of inactivity before starting a new conversation (5-1440) +CONVERSATION_TIMEOUT_MINUTES=60 + +# =========================================== +# Database (PostgreSQL) +# =========================================== +# PostgreSQL connection URL (if not set, uses in-memory storage) +# Format: postgresql+asyncpg://user:password@host:port/database +DATABASE_URL=postgresql+asyncpg://daemon:daemon@localhost:5432/daemon_boyfriend + +# Password for PostgreSQL when using docker-compose +POSTGRES_PASSWORD=daemon + +# Echo SQL statements for debugging (true/false) +# DATABASE_ECHO=false + +# Connection pool settings +# DATABASE_POOL_SIZE=5 +# DATABASE_MAX_OVERFLOW=10 + # =========================================== # Web Search (SearXNG) # ===========================================