Repository navigation
EN Accounts and security
Settings → Users (administrators):
| Role | Can |
|---|---|
| Administrator | everything: cameras, storage, settings, accounts |
| Viewer | watch: live view, recordings, events, pictures, exports; change nothing |
- Passwords of at least 8 characters, hashed (Argon2); 30-day cookie sessions; changing a password closes the other sessions.
- Five failed attempts block an address for 15 minutes (20 for an account, from all addresses together).
- Everyone changes their own password from their profile menu.
- Scripts can use HTTP Basic authentication with an account, or better an API token (below).
A viewer has no Cameras or Storage page, nor the settings: their Settings are only the appearance (theme, language) and their password, and the server also refuses to give them the settings. (Since 2026.11.07.)
A viewer can be limited to some cameras: Settings → Users → the Every camera button of their account → « Only the ticked ones ». The other cameras do not exist for them: no live view, recordings, events, pictures or exports. The change applies at once, without signing in again; a live view already open on a camera taken away closes within seconds.
Besides the password, a 6-digit code given by an authenticator app on the phone (Google Authenticator, Aegis, 2FAS…). Each person turns it on for their own account: Settings → Users → Turn the two-step login on, scan the QR code, then type the first code the app shows.
- 10 recovery codes are then shown only once: keep them somewhere safe. Each one replaces the app code once, if the phone is lost or changed.
- When signing in, RustNVR asks for the code after the password.
- An administrator can remove the two-step login of an account (button of
the account in Settings → Users), for someone who lost the phone and the
codes. If it is the only administrator,
reset-passwordremoves it too (see Troubleshooting). - With the two-step login, HTTP Basic with the password no longer works for that account: scripts use a token (below).
For a script, a tablet or Home Assistant, without giving the password:
Settings → Users → API tokens, a name (« Living room tablet »), then
Create. The token (rnvr_…) is shown only once: copy it.
- It is used with the header
Authorization: Bearer rnvr_…, or as the password of HTTP Basic, with the account's name. - Read only (ticked by default): it watches, without being able to change anything, even on an administrator account.
- A token can neither manage accounts, nor change a password, nor create other tokens.
- The list shows the last use of each token; Revoke cuts it at once.
Settings → Account activity (administrators): who signed in, from which address, the refused sign-ins, and who changed what (settings, cameras, accounts, exports), with the time and the result. Plain views are not recorded. Kept 180 days.
On by default with Docker and the install scripts, with a self-signed
certificate made for the machine's address. The browser warns once: compare
the fingerprint it shows with the one in the log (« HTTPS enabled …
sha256= »). Other names (VPN address, DNS name): tls_names in
config.toml. A real certificate: tls_cert and tls_key, or a reverse
proxy.
For a domain name and a Let's Encrypt certificate:
| Nginx Proxy Manager | Value |
|---|---|
| Scheme |
https (RustNVR's self-signed certificate is accepted) |
| Forward Hostname / IP, Port | the address of RustNVR, 8080
|
| Websockets Support | ticked: the live view and the real-time state need it |
| SSL | Let's Encrypt, Force SSL |
Then declare the proxy to RustNVR, otherwise five failed attempts from
anyone would block everyone behind the proxy. In config.toml, section
[web], then restart:
trusted_proxies = ["192.168.1.5"]The « Low latency » live view (WebRTC) does not go through a proxy: it needs a direct UDP path (local network or VPN).
- The passwords of the cameras, MQTT and storage are in the
*.ui.tomlfiles next toconfig.toml, readable by their owner only; they can also come from environment variables (password_env). - The log never shows a password, nor a full camera address
(
rtsp://host:portonly), nor a webhook address. - The API never returns the RTSP paths nor the credentials of the cameras.
Do not expose RustNVR on the Internet without HTTPS and strong passwords; a VPN (WireGuard, Tailscale) stays the safest.