Configuration

Variable Default Description
NETLENS_TOKEN (empty) Optional shared access token that signs in as administrator (older installs use it; new ones create an account in the first-start wizard). Not needed for Home Assistant or Prometheus: use an API token from Settings → Users & tokens
NETLENS_RANGES auto-detect Private ranges only, prefix >= /20. Can also be changed at runtime in the web UI (see below); the web setting takes precedence
NETLENS_QUICK_INTERVAL 900 Quick scan interval in seconds
NETLENS_DEEP_INTERVAL 86400 Deep scan interval in seconds
NETLENS_TERMINAL on Enable/disable web terminal
NETLENS_GUACD 127.0.0.1:4822 Address of the optional guacd helper container for RDP and VNC (off disables it)
NETLENS_TERMINAL_REMOTE off Where the terminal may be used from: off = direct local connections only (not through a reverse proxy / HTTPS address), lan = also through a proxy for local clients, any = anywhere
NETLENS_TRUSTED_PROXIES (empty) Reverse proxies whose X-Forwarded-For header is believed, as addresses or networks (192.168.0.184 or 192.168.0.0/24, comma separated). Set this when you reach Netlens through a reverse proxy: without it every visitor looks like the proxy, so the login throttle (5 wrong attempts a minute) is shared by everybody and a stranger can lock you out
NETLENS_API_DOCS off on serves the API documentation pages /docs, /redoc and /openapi.json; they are off so a stranger cannot read a map of the API
NETLENS_BIND 0.0.0.0:8080 Bind address and port
NETLENS_DATA_DIR /data Data directory

In this section