Skip to content

beszel

The hub of Beszel, the lightweight server-monitoring tool, as its project publishes it, for a dotdash relay's or server's site. Visitors and probes that open the domain find a monitoring login page, the same page as on the nearly 6,000 other Beszel hubs Shodan counted by page title in November 2026, rather than an app only dotdash sites run.

Nothing of this repository is in it: the image is upstream's, unmodified (FROM scratch, one Go binary with no shell), pinned by tag and digest in bundle/manifest.yaml, with upstream's look. Renovate proposes each new upstream release. The bundle sets only what makes its one account and keeps everything else closed, and joins the site's network.

It used 16 MiB of memory idle and at most 20 MiB under 30 failed sign-ins on a test machine (limit 64 MiB). It keeps PocketBase's SQLite in its volume and runs on amd64 and arm64. The image is 34 MB unpacked.

The account

A fresh Beszel offers its first visitor an account. Here no visitor ever gets the offer: Beszel makes its account at its first start, from email and the password_env secret, so /api/beszel/first-run answers false from the first request on. The account is an admin, and the same pair signs in to PocketBase's own panel at /_/.

Upstream reads the password only from its environment, and the image has no shell to read it from a file, so password_env holds the line Compose hands it: USER_PASSWORD=<password>. Before every start, morzer runs bundle/hooks/migrate, which refuses to start Beszel unless password_env is that one line, 12 to 71 characters of letters, digits and +/=_.,:@%~^*!-. Without that check, a mistyped secret would start a Beszel with no account, and the first visitor would get one.

Beszel reads the two only once, when it creates its database. To change the password later, sign in and change it in the app; a new password_env then only has to keep its form.

What a stranger can reach

  • The login page, at /, titled "Beszel": email and password, as on any hub. Its page carries the version (HUB_VERSION), so keep it current (below).
  • PocketBase's superuser login at /_/, titled "PocketBase", as on any hub.
  • What every hub answers anyone: /api/health, /api/beszel/first-run (false), and /api/collections/users/auth-methods (password sign-in on, OAuth off). Every other API answers 401.
  • Sign-in tries are limited by PocketBase: after 10 failures, 429.

What it calls out to

Nothing: on a test machine, it looked up no name in 12 minutes.

  • Update check: off (CHECK_UPDATES=false, upstream's default).
  • SSH to systems: off (DISABLE_SSH=true). With no system set up it would reach out to none anyway, and with SSH off a stolen sign-in can't point it at a host. Agents could still dial in; none is set up.
  • Heartbeat, mail, OAuth: none set.

Pair it with a relay

Every relay has a site, on dotdash relay 0.29 or later (0.28 needed the own-site profile): a Caddy on the Docker network dotdash-relay_edge, which serves the relay's domain. beszel joins that network as beszel, so the relay's cover parameter points at http://beszel:8090. Caddy then passes the app every request except subscriptions, XHTTP and your own files in /srv/dotdash-relay, which take precedence over the app: keep that directory empty, or a stranger finds files no Beszel has.

domain is the domain the relay's site serves: Beszel names https://<domain> as its address (APP_URL).

It also runs on a server: there, set network=dotdash_edge and use --product dotdash for the server's cover.

Install

The relay goes first, dotdash relay 0.29 or later, because it creates the network the app joins.

sudo morzer init --release oci://ghcr.io/morzecrew/dotdash-utils/beszel:stable \
  --set domain=monitor.example.com --set email=ops@example.com
pw=$(openssl rand -base64 24); echo "$pw"                      # keep it to sign in
printf 'USER_PASSWORD=%s' "$pw" | sudo morzer --product beszel secret set password_env
sudo morzer --product beszel apply
sudo morzer --product beszel status                           # wait for healthy

sudo morzer --product dotdash-relay config set cover=http://beszel:8090

init prints the release's signing key and trusts it from then on. To check even this first release, add --signing-key with the release key this repository publishes.

morzer undoes the last config set if the site cannot reach the app, so run it only once status shows the app healthy. With two installations on the machine, every morzer command names the one it means with --product; sudo morzer shell beszel opens a shell where commands mean this one.

Parameters

Parameter Default What it does
domain required The domain the site in front serves, such as monitor.example.com. Beszel names https://<domain> as its address.
email required The address the account signs in with. Beszel sends it nothing, and strangers never see it.
network dotdash-relay_edge The site's Docker network: dotdash-relay_edge on a relay, dotdash_edge on a server. It must exist before the app is applied.
Secret What it is
password_env The account's password as one line, USER_PASSWORD=<password>, 12 to 71 characters of letters, digits and +/=_.,:@%~^*!-, such as openssl rand -base64 24 gives. Read at the first start alone.

Updating

Beszel's page tells anyone the version, so an install left behind becomes a rare value, and soon a vulnerable one. Each upstream release reaches a relay in three steps: Renovate's pull request moves the pin (merge it once its smoke install passes), main publishes the bundle on the dev channel, and a release tag puts it on stable. Then, on each machine:

sudo morzer --product beszel update      # the newest stable release

PocketBase migrates the database forward as Beszel starts, and an older release doesn't promise to start on it, so rollback refuses: the way back is the backup morzer took before the update, which the refusal names (morzer restore).

To remove it, point the site back at its own page first, then remove the installation. installation list shows its id. The data volume stays unless you add --purge:

sudo morzer --product dotdash-relay config set cover=pages
sudo morzer --product beszel installation remove --force --confirm <its inst_… id>