Repository navigation
Expand file tree
/
Copy path.env.example
More file actions
166 lines (141 loc) · 4.41 KB
/
Copy path.env.example
File metadata and controls
166 lines (141 loc) · 4.41 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
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
155
156
157
158
159
160
161
162
163
164
165
166
# -----------------
# Docker settings
# -----------------
POSTGRES_IMAGE_TAG=16-alpine
CLICKHOUSE_IMAGE_TAG=24.9.1-alpine
CONTROLLER_UPSTREAM=http://controller:8080
PANEL_UPSTREAM=http://panel:3000
# -----------------
# Caddy settings
# -----------------
# Option 1: Two separate domains (default - uses Caddyfile)
# Recommended when you have separate subdomains for API and app
API_DOMAIN=devapi.netwatcher.io
APP_DOMAIN=devapp.netwatcher.io
# Option 2: Single domain (uses Caddyfile.single-domain)
# Routes /api/* to controller, everything else to panel
# To use: copy Caddyfile.single-domain to Caddyfile, or update docker-compose volumes
# DOMAIN=netwatcher.io
# -----------------
# Frontend settings
# -----------------
CONTROLLER_ENDPOINT=https://devapi.netwatcher.io
# -----------------
# App settings
# -----------------
DEBUG=true
LISTEN=0.0.0.0:8080
JWT_SECRET=
PIN_PEPPER=nw-testing123
# Enable or disable user registration (default: true)
REGISTRATION_ENABLED=true
# -----------------
# ClickHouse / Database
# -----------------
CLICKHOUSE_HOST=
CLICKHOUSE_PORT=9000
CLICKHOUSE_USER=netwatcher
CLICKHOUSE_PASSWORD=
CLICKHOUSE_DB=default
# -----------------
# GORM / Database
# -----------------
# Which driver to use: postgres | mysql | sqlite | sqlserver
DB_DRIVER=postgres
# Common (pooling, logging)
GORM_LOG=info # silent|error|warn|info
DB_MAX_OPEN_CONNS=25
DB_MAX_IDLE_CONNS=25
DB_CONN_MAX_LIFETIME=30m
DB_CONN_MAX_IDLE_TIME=10m
# -----------------
# PostgreSQL
# -----------------
POSTGRES_HOST=
POSTGRES_PORT=5432
POSTGRES_USER=netwatcher
POSTGRES_PASSWORD= # <--- set this!
POSTGRES_DB=netwatcher
POSTGRES_SSLMODE=disable
POSTGRES_TIMEZONE=America/Vancouver
# -----------------
# Email / SMTP
# -----------------
SMTP_HOST=
SMTP_PORT=587
SMTP_USER=
SMTP_PASSWORD=
SMTP_FROM_EMAIL=noreply@netwatcher.io
SMTP_FROM_NAME=NetWatcher
SMTP_TLS=true
SMTP_SKIP_VERIFY=false
# -----------------
# Email / Webhook (alternative to SMTP)
# Use this to send email data to external services
# If configured, takes precedence over SMTP
# -----------------
EMAIL_WEBHOOK_URL=
EMAIL_WEBHOOK_AUTH_TOKEN=
EMAIL_WEBHOOK_TIMEOUT=30s
# -----------------
# Email Features
# -----------------
EMAIL_SEND_REGISTRATION_CONFIRMATION=false
# Require email verification before users can create workspaces (default: false)
REQUIRE_EMAIL_VERIFICATION=false
EMAIL_VERIFICATION_EXPIRY_HOURS=24
EMAIL_INVITE_EXPIRY_HOURS=168
EMAIL_PASSWORD_RESET_EXPIRY_HOURS=1
# Panel endpoint for email links (invites, password resets)
PANEL_ENDPOINT=https://app.netwatcher.io
# -----------------
# GeoIP / MaxMind
# -----------------
# Paths to MaxMind GeoLite2 .mmdb database files
# Leave empty to disable GeoIP lookups
GEOIP_CITY_PATH=/data/geoip/GeoLite2-City.mmdb
GEOIP_COUNTRY_PATH=/data/geoip/GeoLite2-Country.mmdb
GEOIP_ASN_PATH=/data/geoip/GeoLite2-ASN.mmdb
# -----------------
# Data Retention
# -----------------
# Days to keep probe data in ClickHouse (updates TTL on startup)
DATA_RETENTION_DAYS=90
# Days before hard-deleting soft-deleted agents/probes
SOFT_DELETE_GRACE_DAYS=30
# How often cleanup runs (hours)
CLEANUP_INTERVAL_HOURS=24
# -----------------
# LLM / AI Enrichment (Optional)
# -----------------
# Adds natural language summaries to the rule-based analysis engine.
# Disabled by default — the analysis engine works fully without it.
# Provider: "openai" or "ollama" (leave empty to disable)
LLM_PROVIDER=
# OpenAI-compatible settings (used when LLM_PROVIDER=openai)
LLM_API_KEY=
LLM_API_URL=https://api.openai.com/v1
LLM_MODEL=gpt-4o-mini
# Ollama settings (used when LLM_PROVIDER=ollama)
OLLAMA_URL=http://localhost:11434
OLLAMA_MODEL=llama3.2
# -----------------
# Workspace Limits
# -----------------
# Maximum members per workspace (0 = unlimited)
MAX_MEMBERS_PER_WORKSPACE=0
# Maximum agents per workspace (0 = unlimited)
MAX_AGENTS_PER_WORKSPACE=0
# Maximum probes per agent (0 = unlimited)
MAX_PROBES_PER_AGENT=0
# Maximum workspace memberships per user (0 = unlimited)
MAX_WORKSPACES_PER_USER=0
# -----------------
# AGENT Probe Expansion
# -----------------
# When an AGENT probe is expanded per target, decide whether to also emit
# a PING probe alongside MTR (and TRAFFICSIM, if the target runs a server).
# PING requires ICMP — many networks block ICMP by default. Leave off unless
# you've confirmed ICMP is permitted to the target agent.
# Per-probe override: set metadata["expansion"]["include_ping"] = true|false.
AGENT_EXPANSION_INCLUDE_PING=false