-
Notifications
You must be signed in to change notification settings - Fork 1
Expand file tree
/
Copy path.env.example
More file actions
34 lines (27 loc) · 974 Bytes
/
.env.example
File metadata and controls
34 lines (27 loc) · 974 Bytes
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
# Authentication (optional — leave unset to disable auth for local/trusted networks)
# Generate SESSION_SECRET with: openssl rand -hex 32
AUTH_USER=admin
AUTH_PASSWORD=changeme
SESSION_SECRET=
# NextDNS API
NEXTDNS_API_KEY=your_nextdns_api_key_here
# Encryption key for storing API keys at rest (generate with: openssl rand -hex 32)
ENCRYPTION_KEY=
# Database
# For Docker: use 'db' as host and port 5432 (Docker network alias, Postgres default)
# For local dev: change to localhost:5432 (or your local Postgres port)
# Generate DB_PASSWORD with: openssl rand -hex 16
DB_PASSWORD=
DATABASE_URL=postgres://ndns:changeme@db:5432/ndns_analytic
# Ingestion
POLL_INTERVAL_SECONDS=30
RETENTION_DAYS=90
ENABLE_HISTORY_FETCH=0
ENABLE_CATCHUP_ON_BOOT=0
# Server
PORT=3000
# Volume spike threshold (queries per 5 minutes per device)
VOLUME_SPIKE_THRESHOLD=200
# Logging (level: trace | debug | info | warn | error | fatal; mode: pretty | json)
LOG_LEVEL=info
LOG_MODE=pretty