Settings & Management Modals
The Web UI provides interactive management modals accessible from the header navigation bar and camera cards.
1. Camera Form Modal (CameraFormModal)
Used for registering and editing camera parameters across two dedicated tabs:
- General Tab: Camera ID, RTSP URL, transport protocol (
TCP,UDP,Auto), continuous recording toggle, retention period (days), Lazy HLS toggle, Stream Token authentication toggle, and administrative disable with reason (technical,requested,payment). - Cellular & Metadata Tab: Folder assignment, color-coded tag selection, location notes/comment, SIM phone number, SIM ICCID, and monthly traffic bandwidth quota (in GB).
2. Tag & Folder Managers
- Tag Manager (
TagManagerModal): Create, rename, assign custom hex color badges, and delete tags. Deleting a tag automatically cleans up references from all cameras. - Folder Manager (
FolderManagerModal): Create hierarchical site folders and rename/delete existing folders.
3. User & RBAC Manager (UserManagerModal)
Available to administrators:
- View all registered accounts.
- Create new users and set initial passwords.
- Change passwords and assign roles (
admin,operator,viewer,service). - Delete user accounts with automatic token revocation.
4. Live Server Logs (LogsModal)
- Connects to the
/api/logs/streamServer-Sent Events (SSE) stream. - Color-coded log level badges (
INFO,WARN,ERROR,DEBUG). - Pause/Resume auto-scroll for easy inspection of stack traces and errors.
5. Server Statistics (ServerStatsModal)
Displays live Go runtime health:
- Allocated Heap and System Memory.
- Active goroutine count and Garbage Collection cycle statistics.
- Table of all currently connected viewer IP addresses and target streams.
6. Backup & Restore
- Export: Generates and downloads a complete JSON configuration snapshot of cameras, folders, and tags.
- Import: Uploads a backup file and applies updates atomically to BadgerDB without restarting the server daemon.