-
Notifications
You must be signed in to change notification settings - Fork 1
Expand file tree
/
Copy path.env.example
More file actions
59 lines (52 loc) · 2.53 KB
/
.env.example
File metadata and controls
59 lines (52 loc) · 2.53 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
59
# ============================================================================
# LLMTrace — Environment Configuration
# ============================================================================
#
# Copy this file: cp .env.example .env
# Then: docker compose up -d && source .env
#
# These variables configure both Docker Compose services AND the LLMTrace proxy.
# ============================================================================
# ---------------------------------------------------------------------------
# Storage Profile
# ---------------------------------------------------------------------------
# "lite" = SQLite (zero infra, just run the binary)
# "memory" = in-memory (tests, ephemeral)
# "production" = ClickHouse + PostgreSQL + Redis (docker compose up)
LLMTRACE_STORAGE_PROFILE=production
# ---------------------------------------------------------------------------
# ClickHouse (trace/span analytical storage)
# ---------------------------------------------------------------------------
CLICKHOUSE_PORT=8123
CLICKHOUSE_NATIVE_PORT=9000
CLICKHOUSE_DATABASE=llmtrace
LLMTRACE_CLICKHOUSE_URL=http://localhost:8123
LLMTRACE_CLICKHOUSE_DATABASE=llmtrace
# ---------------------------------------------------------------------------
# PostgreSQL (tenant metadata, configs, audit trail)
# ---------------------------------------------------------------------------
POSTGRES_PORT=5432
POSTGRES_USER=llmtrace
POSTGRES_PASSWORD=llmtrace
POSTGRES_DB=llmtrace
LLMTRACE_POSTGRES_URL=postgres://llmtrace:llmtrace@localhost:5432/llmtrace
# ---------------------------------------------------------------------------
# Redis (cache, cost tracking, sessions)
# ---------------------------------------------------------------------------
REDIS_PORT=6379
LLMTRACE_REDIS_URL=redis://127.0.0.1:6379
# ---------------------------------------------------------------------------
# Proxy
# ---------------------------------------------------------------------------
LLMTRACE_LISTEN_ADDR=0.0.0.0:8080
LLMTRACE_UPSTREAM_URL=https://api.openai.com
# ---------------------------------------------------------------------------
# Logging
# ---------------------------------------------------------------------------
LLMTRACE_LOG_LEVEL=info
LLMTRACE_LOG_FORMAT=text
# Fine-grained: RUST_LOG=llmtrace_proxy=debug,info
# ---------------------------------------------------------------------------
# SQLite (only used when LLMTRACE_STORAGE_PROFILE=lite)
# ---------------------------------------------------------------------------
LLMTRACE_STORAGE_DATABASE_PATH=llmtrace.db