-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy path.env.example
More file actions
55 lines (46 loc) · 1.37 KB
/
.env.example
File metadata and controls
55 lines (46 loc) · 1.37 KB
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
# REQUIRED
CHESS_USERNAME=your_chesscom_username
CHESS_OUTPUT_DIR=/data
STATE_DB=/data/state.sqlite
# Your local timezone (e.g. America/Chicago, Europe/London)
DISPLAY_TIMEZONE=America/Chicago
# Optional container UID/GID mapping (Linux hosts)
UID=1000
GID=1000
# LLM provider: "gpt" or "ollama"
PROVIDER=ollama
# Postgres connection string (used by default in docker-compose)
# Postgres in docker-compose (auto default if omitted)
DATABASE_URL=postgresql://chess:chess@postgres:5432/chesscoach
# Telegram (optional)
TG_BOT_TOKEN=
TG_CHAT_ID=
# OpenAI (optional)
# OPENAI_API_KEY=
# Ollama (optional)
# Set this explicitly when PROVIDER=ollama.
# In Docker, prefer host.docker.internal to reach host Ollama.
# Ollama base URL (use host.docker.internal in Docker to reach host)
OLLAMA_URL=http://host.docker.internal:11434
# Example: llama3.2:latest, qwen2.5:14b-instruct
OLLAMA_MODEL=llama3.2:latest
# LLM tuning (applies to Ollama or GPT provider)
LLM_TEMPERATURE=0.1
LLM_TOP_P=0.8
LLM_MAX_TOKENS=600
LLM_TIMEOUT_SECONDS=300
# PGN retry behavior
PGN_FETCH_MAX_ATTEMPTS=5
PGN_FETCH_TERMINAL_ATTEMPTS=10
# Engine / analysis settings
ENABLE_ENGINE=true
STOCKFISH_PATH=/usr/games/stockfish
ENGINE_DEPTH=15
# Polling / retry controls
POLL_MAX_ATTEMPTS=5
POLL_COOLDOWN_SECONDS=600
POLL_BATCH_SIZE=5
ENABLE_QUEUE_DEBUG=0
ENABLE_POLL_EXEC_AUDIT=0
PROCESS_ON_STARTUP=true
PLAYER_SUMMARY_EVERY_N=20