2.2 KiB
Environment configuration (v1.4.x)
The repository-level .env.example is the canonical configuration template for the Mega stack.
It intentionally includes the complete GLPI Agent configuration plus NeuroForge, controlled-learning,
Knowledge Editor, Control Center and optional Research/SearXNG settings.
Important migration rule
Do not copy the old standalone agent .env unchanged into the Mega stack without reviewing it.
The old variables are still supported, but container-internal values are now owned by Compose:
HTTP_ADDR=:8080DATA_DIR=/app/dataKNOWLEDGE_DIR=/app/knowledgeOLLAMA_URL=http://ollama:11434NEUROFORGE_URL=http://neuroforge:8080NEUROFORGE_API_KEYis derived fromNEUROFORGE_APP_API_KEY- Brain-activity endpoints are wired internally by Compose
The host-facing ports are configured separately with AGENT_HOST_PORT, KNOWLEDGE_HOST_PORT,
CONTROL_HOST_PORT, NEUROFORGE_HOST_PORT, OLLAMA_HOST_PORT and SEARXNG_HOST_PORT.
First setup
cp .env.example .env
./scripts/generate-secrets.sh
Copy the generated values into .env, then configure the required GLPI credentials:
GLPI_URLGLPI_CLIENT_IDGLPI_CLIENT_SECRETGLPI_USERNAMEGLPI_PASSWORDGLPI_AGENT_USER_IDbefore enabling Auto Reply / escalation writes
Keep DRY_RUN=true, AUTO_REPLY=false, AUTO_PRIORITY=false and AUTO_ESCALATION=false
for the first integration tests.
Legacy behavior that is no longer represented by defaults
A migration from an older agent .env can materially change behavior if only the short Mega template
is used. In particular review:
GLPI_KB_ENABLEDGLPI_KB_AUTO_REPLYGLPI_KB_AUTO_REPLY_CATEGORY_IDSKNOWLEDGE_ALLOWED_SOURCESKNOWLEDGE_AUTO_REPLY_SOURCESKNOWLEDGE_WEB_EDIT_ENABLEDCATEGORY_CONFIDENCEREPLY_CONFIDENCE- Context / Change / Uptime Kuma options
- Priority and escalation policy
- Communication policy
The canonical .env.example now contains these settings explicitly.
Secrets
Never commit .env. The tracked file must remain .env.example only.
If credentials were pasted into issue trackers, chats, CI logs, shell history or screenshots,
rotate them before production use.