Configuration
All settings live in the NOCTURNE dict in your settings.py.
NOCTURNE = {
"SERVICE_NAME": "my-api",
"ANOMALY_THRESHOLD": 2.0,
"AI_BACKEND": "anthropic",
"ANTHROPIC_API_KEY": env("ANTHROPIC_API_KEY"),
}
Full Reference
Core
Key |
Default |
Description |
|---|---|---|
|
|
Tag applied to all log entries by the middleware |
|
|
Z-score cutoff for anomaly detection |
|
|
Auto-purge log entries older than N days |
|
|
Paths the middleware skips |
|
|
Redirect for unauthenticated dashboard access |
AI
Key |
Default |
Description |
|---|---|---|
|
|
Active LLM: |
|
|
Master toggle for all LLM calls |
|
|
Claude API key |
|
|
Claude model ID |
|
|
Ollama server URL |
|
|
Ollama model name |
|
|
OpenAI API key |
|
|
OpenAI model ID |
|
|
Override for Azure / Groq / vLLM |
|
|
Google Gemini API key |
|
|
Gemini model ID |
Webhooks
Key |
Default |
Description |
|---|---|---|
|
|
HMAC-SHA256 secret for signature validation on received webhooks |