Configuration Reference
For MiBeeNvr v0.15.0 · default config file
mibee-nvr.yaml(override with-config)
A single YAML file drives all of MiBee NVR. This page is a top-level key cheat sheet; for every field see the full configuration reference in the repository.
Ways to Change Settings
There are two entry points; the web UI is the recommended one (persists immediately, a few fields need a restart):
| Entry point | Good for | Notes |
|---|---|---|
| Web UI → Settings | Most runtime options | Storage, streaming, GB28181, AI detection, recording & processing pages |
| Edit the YAML | Bulk edits / bootstrapping | Camera list, deploy scripts; restart after editing |
mibee-nvr encrypt-configencrypts plaintext secrets in place (see the CLI reference).
Top-Level Key Cheat Sheet
server:
listen: ":9090" # HTTP listen address (web/API/streaming)
storage:
root_dir: "/var/lib/mibee-nvr" # storage root: recordings + database
segment_duration: "30s" # MP4 segment duration (≤30s recommended on RPi)
# remote: ... # S3 object-storage offload (default off) — see the offload guide
auth:
username: "admin"
password_hash: "" # generate with: mibee-nvr hash-password <password>
# local_bypass: false # skip login for browsers on the host (localhost); default off; loopback + localhost Host only; NEVER enable behind a proxy/Docker
cameras: [] # camera list (prefer maintaining via web UI, see below)
recording:
# default_enabled: true # global recording gate default: cameras without an explicit recording_enabled inherit it; false = pure-live, no segments
cleanup:
retention_days: 30 # retention in days (1–3650), auto-cleaned when expired
merge:
enabled: false # periodic segment merging (8h/24h/7d/30d outputs)
io:
# budget_bytes_per_sec: 0 # background I/O budget (shared token bucket for merge/cleanup/offload; 0 = off, default)
memory: # adaptive GOMEMLIMIT: defaults to min(45% physical RAM, 1GiB) — usually leave unset
# soft_limit_bytes: 0 # explicit override of the auto heuristic (0 = auto)
ftp:
enabled: true # FTP access to recordings (default port 2121)
mqtt:
enabled: false # MQTT event integration; see the MQTT guide
webdav:
enabled: true # WebDAV access (/dav)
hls:
write_buffer_size: 100 # async write buffer frames per HLS stream
low_latency: true # LL-HLS on by default; false = classic segment playlists
observability:
log_level: "info" # debug / info / warn / error
security:
frame_ancestors: "" # CSP frame-ancestors (set when embedding the web UI cross-origin)
update:
# auto_apply: false # bare-metal auto-upgrade (default off); version check is on by default
For the full
storage.remote(S3 object-storage offload) configuration and themibee-nvr offloadoperator commands see Object-Storage Offload.
Camera Entry Structure
One entry per camera — protocol and encoding are separate fields:
cameras:
- id: "front-door" # stable unique ID (used for directories and the API)
name: "Front Door" # display name
protocol: "rtsp" # rtsp | http | onvif | xiaomi | srt | rtmp | gb28181 | timelapse
encoding: "h264" # h264 | h265 | mjpeg | jpeg (ONVIF auto-detects; may omit)
url: "rtsp://192.168.1.100:554/stream"
username: "admin" # camera credentials (protocol-dependent)
password: "camera123"
enabled: true
recording_enabled: true # false = live-only, no recording
# Dual-spectrum (thermal) keys: imaging_type: thermal (label the thermal
# channel + default policies), thermal_readout: (temperature readout
# endpoint), spectrum_group: (pair channels that register separately).
# See the "Thermal / Dual-Spectrum Cameras" section in the camera guide.
Full recipes per protocol: ONVIF · Xiaomi · SRT/RTMP · Raspberry Pi · GB28181.
Common Recipes
External Drive Storage
storage:
root_dir: "/mnt/external/nvr"
segment_duration: "30s"
Docker Environment Overrides
Config values can be overridden via environment variables (common in containers):
# docker-compose.yml
environment:
- NVR_PASSWORD=initial-password # admin password on first start
- NVR_LISTEN_PORT=9090
- NVR_DATA_DIR=/data
- NVR_UID=1000
- NVR_GID=1000
Environment / Port Cheat Sheet
| Item | Default | Where |
|---|---|---|
| HTTP (web/API/HLS) | 9090 | server.listen / NVR_LISTEN_PORT |
| FTP | 2121 (passive 2122–2140) | ftp.port |
| SRT ingest | 9000/udp | srt.port |
| RTMP ingest | 1935 | rtmp.port |
| GB28181 SIP | 5060/udp | gb28181.sip_listen |
Next Steps
- CLI Reference — init / hash-password / encrypt-config and friends
- Docker Deployment — container deployment and volume mounts
- Full configuration reference (GitHub)