Set up the server

Run your own humble-server on Windows, Linux, macOS or in Docker.

humble-server is one self-contained program. The dashboard and the database are built in, so there is nothing else to install. It needs to be reachable by every computer that will use it, so give it a fixed address or a DNS name.

Try it in the foreground first

humble-server serve

Open http://localhost:8080. The first visit asks you to create the administrator account. Press Ctrl+C to stop it.

Install as a background service

The same command works on all three systems. Run it from an Administrator terminal on Windows, or with sudo on Linux and macOS:

humble-server service install --bind 0.0.0.0:8080 --public-url https://remote.example.com

It registers the service, starts it, and remembers the options you gave. To change an option, run service install again with the new options. To remove it, run humble-server service uninstall; your data is kept.

SystemPackageRuns asData folderLogs
Windowshumble-server-windows-x86_64-<version>.msiService HumbleServer, with a firewall rule for the portC:\ProgramData\HumbleServerserver.log in the data folder
Ubuntu, Debianhumble-server_<version>-1_amd64.debhumble-server.service/var/lib/humblejournalctl -u humble-server
Archhumble-server-<version>-1-x86_64.pkg.tar.zsthumble-server.service/var/lib/humblejournalctl -u humble-server
macOShumble-server-macos-universal-<version>.pkgLaunch daemon com.humble.server/Library/Application Support/HumbleServer/Library/Logs/HumbleServer.log

Windows

msiexec /i humble-server-windows-x86_64-<version>.msi PORT=8080 PUBLICURL=https://remote.example.com

The MSI installs and starts the service and opens the port in Windows Firewall. For HTTPS or other options, run humble-server service install with those options afterwards from an Administrator terminal.

Linux

The packages ship the service but do not start it:

sudo systemctl enable --now humble-server

To change options with the packaged service, run sudo systemctl edit humble-server and add lines such as:

[Service]
Environment=HUMBLE_BIND=0.0.0.0:443
Environment=HUMBLE_PUBLIC_URL=https://remote.example.com
Environment=HUMBLE_TLS_CERT=/etc/humble/cert.pem
Environment=HUMBLE_TLS_KEY=/etc/humble/key.pem

Without a package, copy the humble-server binary to /usr/local/bin and use sudo humble-server service install.

macOS

Open the .pkg. It installs /usr/local/bin/humble-server and starts the service on port 8080. Change options with sudo humble-server service install and the new options.

Docker

cd deploy
cp .env.example .env     # set HUMBLE_DOMAIN and HUMBLE_ADMIN_PASSWORD
mkdir -p dist            # the app binaries for installers go here (see below)
docker compose up -d

This starts the server behind Caddy, which obtains and renews an HTTPS certificate by itself. Point a DNS record at the host and open ports 80 and 443. The administrator account is created from the values in .env. The password must follow the password rules (at least 12 characters, with an uppercase and a lowercase letter, a number and a symbol); otherwise no account is made and the dashboard asks for one instead.

Create the first account

Use whichever is convenient:

Until the first account exists, anyone who can open the dashboard can create it. Do this straight after installing.

Run a public relay

A server on the internet can serve everyone: the Humble Viewer Support app (quick support, no account) and anyone who wants an account.

humble-server service install --public-url https://relay.example.com --open-signup --name "Example Relay"
{"items": [
  {"title": "Team plan", "text": "Unattended access for your team.", "url": "https://example.com/pro", "image": "/promo/pro.png"}
]}

The Humble Viewer Support app and the full app use the public relay built into them, https://relay.humbleviewer.com (another one when building with HUMBLE_PUBLIC_RELAY); humble-support --relay <url> picks another one.

Use PostgreSQL

By default the server keeps everything in a SQLite file, humble.db in the data folder, which needs no setup. A bigger or hosted server can use PostgreSQL instead:

HUMBLE_DATABASE=postgres://humble:password@db.example.com:5432/humble

Give the server a database and a user of its own that owns it; the server creates and upgrades its tables. Characters such as #, $ or @ in the password must be written as %23, %24, %40 in the URL. Encrypt the connection (?sslmode=require) unless it goes over a private network.

To move an existing server to PostgreSQL, stop it and copy its database into the new, empty one, then start it with HUMBLE_DATABASE set:

HUMBLE_COPY_TO=postgres://humble:password@db.example.com/humble humble-server copy-database

server.key stays in the data folder whichever database you use.

Turn on HTTPS

People sign in to the dashboard with a password, so serve it over HTTPS whenever it is reachable from outside your own network. There are two ways.

Built in

Give the server a certificate and key in PEM format, for example from Let's Encrypt (certbot on Linux and macOS, win-acme on Windows) or your own certificate authority:

humble-server service install --bind 0.0.0.0:443 \
  --public-url https://remote.example.com \
  --tls-cert /path/to/fullchain.pem --tls-key /path/to/privkey.pem

The files are read when the server starts. After renewing a certificate, restart the service.

Self-signed, for a server of your own

Without a domain name you can still keep passwords off the network in clear text. --self-signed makes a certificate on first start (kept in tls in the data folder, for localhost, the computer's name and address, and the host of --public-url) and serves HTTPS with it:

humble-server service install --bind 0.0.0.0:443 --self-signed --http-bind 0.0.0.0:8080 \
  --public-url http://192.168.1.10:8080

Browsers warn once that they do not know the certificate. Compare the SHA-256 fingerprint the server logs at start with the one the browser shows, then accept it. The Humble Viewer app does the same: the first time it reaches the server (signing in, getting an ID, adding a computer) it shows the fingerprint and asks whether to trust it, and from then on accepts that certificate, and only that one, for this server. On the command line, humble login prints the fingerprint and takes it with --trust-certificate. When the names the certificate covers change (another --public-url, a new address), the server makes a new certificate at start, with a new fingerprint to compare and accept again.

--http-bind is optional: it keeps plain HTTP on port 8080 next to HTTPS, for older Humble Viewer versions or for installers made with an http:// --public-url. Use it only on a network you trust. With a real certificate, use HTTPS everywhere.

Behind a reverse proxy

Let Caddy, nginx or IIS handle HTTPS and pass requests to the server on port 8080. Add --trust-proxy so the server reads the visitor's real address from the proxy, and keep port 8080 closed to the outside. The proxy must pass WebSocket connections through; Caddy does this by default. A complete Caddy configuration is one line:

remote.example.com {
    reverse_proxy localhost:8080
}

Set the public address

--public-url is the address other computers use to reach the server. It is written into every installer the server generates, so set it to the address that works from outside, including https://. If you leave it out, the server uses whatever address the administrator's browser used, which is fine on a single network and wrong behind a proxy.

Enable installer generation

To produce installers, the server needs copies of the desktop app. Put these files in the dist folder inside the data folder (or point --dist-dir somewhere else):

File nameUsed for
humble-windows-x86_64.exeThe Windows installer and the PowerShell command
humble-linux-x86_64The Linux command on Intel and AMD computers (software video encoding; any distribution with glibc 2.36 or newer)
humble-linux-aarch64The Linux command on ARM computers (likewise)
humble-macos-universalThe macOS command

The release workflow publishes them together as humble-dist.tar.gz. Without them the dashboard still works; only the installer downloads fail.

Options

Every option can be given on the command line or as an environment variable.

OptionEnvironment variableDefaultMeaning
--dataHUMBLE_DATAThe system data folder above (a folder of your own user's when that one cannot be written)Where the database and the server key are kept.
--databaseHUMBLE_DATABASESQLite, humble.db in the data folderA PostgreSQL database: postgres://user:password@host/database.
--bindHUMBLE_BIND0.0.0.0:8080Address and port to listen on.
--public-urlHUMBLE_PUBLIC_URLFrom each requestAddress written into installers.
--tls-cert, --tls-keyHUMBLE_TLS_CERT, HUMBLE_TLS_KEYNoneServe HTTPS directly.
--self-signedHUMBLE_SELF_SIGNEDOffServe HTTPS with a self-signed certificate made on first start.
--http-bindHUMBLE_HTTP_BINDNoneAlso serve plain HTTP on this address, next to HTTPS on --bind.
--trust-proxyHUMBLE_TRUST_PROXYOffTrust the address headers set by a reverse proxy.
--dist-dirHUMBLE_DISTdist in the data folderWhere the desktop app binaries are.
--adhocHUMBLE_ADHOCtrueAllow quick support devices, reachable with their password without an account. Set to false to allow enrolled devices only.
--open-signupHUMBLE_OPEN_SIGNUPOffLet anyone create an account. Off: only the first account can be created.
--signup-noticeHUMBLE_SIGNUP_NOTICENoneWhile sign-up is closed, the note shown where people would sign up, e.g. "New accounts are coming soon".
--promo-dirHUMBLE_PROMO_DIRpromo in the data folderpromo.json and images shown in Humble Viewer Support.
--nameHUMBLE_NAMEHumble ViewerName shown in the dashboard.
--log-fileHUMBLE_LOG_FILENone (the Windows service: server.log in the data folder)Write logs to this file instead of the console.

Back up, move and upgrade

Manage users from the command line

On the server, without opening the dashboard (as the user the service runs as, or with the same --data and --database):

humble-server user add alice --admin      # asks for the password (or HUMBLE_PASSWORD=…)
humble-server user list
humble-server user passwd alice
humble-server user disable bob            # signed out now, no sign-in until enabled
humble-server user enable bob
humble-server user reset-2fa alice        # a lost phone
humble-server user delete bob

Passwords are never given on the command line, where they would stay in the shell's history: the command asks for them (they are not shown as you type), or reads HUMBLE_PASSWORD in scripts. Administrators can also disable and enable users under Users in the dashboard. Everything is in the account's audit log.