-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy path.env.example
More file actions
58 lines (44 loc) · 2.12 KB
/
.env.example
File metadata and controls
58 lines (44 loc) · 2.12 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
56
57
58
# =============================================================================
# nfo — Environment Configuration (project root)
# =============================================================================
# Copy this file to .env and adjust values for your environment.
#
# cp .env.example .env
#
# nfo's configure() reads NFO_* variables automatically via os.environ.
# Docker Compose loads .env from the project root by default.
# For Python scripts, use python-dotenv: pip install python-dotenv
# =============================================================================
# ---------------------------------------------------------------------------
# Core nfo settings (read by configure())
# ---------------------------------------------------------------------------
# Log level: DEBUG, INFO, WARNING, ERROR
NFO_LEVEL=DEBUG
# Sink specifications (comma-separated)
# Formats: sqlite:<path>, csv:<path>, md:<path>, json:<path>, prometheus:<port>
NFO_SINKS=sqlite:logs/app.db
# ---------------------------------------------------------------------------
# Environment tagging (read by EnvTagger / configure)
# ---------------------------------------------------------------------------
# Environment tag: prod, staging, dev, ci, docker, k8s
NFO_ENV=dev
# App version (auto-detected from GIT_SHA, APP_VERSION if not set)
NFO_VERSION=0.2.0
# ---------------------------------------------------------------------------
# LLM-powered log analysis (requires: pip install nfo[llm])
# ---------------------------------------------------------------------------
# litellm model name (e.g. gpt-4o-mini, claude-3-haiku, ollama/llama3)
# NFO_LLM_MODEL=gpt-4o-mini
# OPENAI_API_KEY=sk-...
# ANTHROPIC_API_KEY=sk-ant-...
# ---------------------------------------------------------------------------
# HTTP service / Docker settings
# ---------------------------------------------------------------------------
# Directory for log files
NFO_LOG_DIR=./logs
# HTTP service port
NFO_PORT=8080
# Prometheus metrics port
NFO_PROMETHEUS_PORT=9090
# Webhook URL for ERROR alerts (Slack/Discord/Teams)
# NFO_WEBHOOK_URL=https://hooks.slack.com/services/T.../B.../xxx