Black Branch/Docs
All sections

The admin panel

This page is for the site's admin, after setup. After it, you can open the Admin Panel, find any setting, read a settings row, and know when a change takes effect. Everything the setup pages wrote can be changed here later, except a handful of values that live on your server (see Settings that live on the server).

Who can open it

Only admins: the account you made on the first setup page, and anyone an admin has made one. The first setup page marks that account as the site's admin and also records it as the Streamer account.

Any admin makes or removes another in Admin Panel → Site → Moderators, card Admins; the site always keeps at least one. A second admin is also how you get back in if one admin account is lost. If nobody can sign in as an admin any more, sudo blackbranch user admin <name> on on the server makes one (see The server command). Site admin is a role on your site only. It is not the streamer account shown on stream, the owner of the community rooms, an administrator of the homeserver, root on the server, or a way to read anyone's direct messages.

Moderators get the Mod Panel, not this one. You make and remove moderators in Admin Panel → Site → Moderators, from a person's user card (Make moderator), or with /mod <name> and /unmod <name> in chat (see Roles and permissions).

Being the admin is checked on the server every time, not only by hiding a button. Anyone else who opens the panel's address is sent to the home page before anything is drawn, and every request the panel makes checks again. Changes must come from your own site's pages (a request from another website is refused), and each saved value records which admin saved it and when.

Opening it

There are three ways in:

From the profile card or the Mod Panel, the panel opens as a window over the site that you can move, resize and dock. Its pop-out button opens the same place as a full page in its own tab. At /admin it is always a full page, and the address bar follows the place you are on, so the browser's back and forward buttons work.

🖼 Image: the Admin Panel window, with the search box at the top, the rail of places on the left and Site → Site open on the right.

How it is laid out

Down the side is a rail of places, grouped under six headings:

Group Places Page
AI Models, Chat Bot, Scoring, Automod, Help Desk, Embeddings AI
Utility OBS (with Timer, Support bar and Effects under it), TTS Utility
Payments Payment history, Connections Payments
Platforms Player, YouTube, Twitch, Kick, Streamplace, Discord, Emotes Platforms
Site Site, Community (with Discord under it), Points, Leaderboard, Badges, Support tickets, Moderators Site
Install Doctor, Updates below

There is no separate place for the module switches or for the overlays. Each module's switch sits at the top of its own feature's place (see Turning features on and off), and each overlay's address sits beside the settings it draws (see Admin Panel: Utility).

On a narrow screen the rail folds into a picker at the top that names the place you are on.

The Search settings box at the top matches place names, card titles, and every setting's name and description. Typing "quiet hour", "webhook" or "overlay" finds the right place even if you do not know where it lives. While you search, the rail shows only the matching places. Places in the Mod Panel that match are listed too, under In the mod panel, and open the Mod Panel there.

A settings row

Most places are cards of rows, one row per setting. Each row shows:

Credentials are write-only. Once saved, a credential shows only … and its last four characters, and its field is never filled back in. To change one, paste the new value over it. Saved credentials are stored encrypted, with a key only the chat service holds.

Details, folded closed, holds the rest: the full description, the setting's internal name (for example currency.purchasable), when it applies in each service, where each service gets its value, when a credential was last checked, and who saved the value and when. The panel remembers which Details you left open.

The site runs as three services, and Details names them the way the panel does everywhere:

The panel says What it is
website The site itself: pages, sign-in, payments
chat service The live backend: chat, alerts, OBS, the settings store
ingest service Reads chat from Twitch, YouTube, Kick and Streamplace, and runs the chat bot

For each service that reads the setting, Details shows where it gets its value:

Shown as Meaning
set on the server The server's environment gives this value (the variable's name is shown). It always wins over a saved one
saved here You saved it in the panel
default Neither is set, so the product's default applies
not set No value anywhere. The part that needs it stays off
not reporting That service did not answer, so the panel cannot show what it holds

A row can also carry a warning: the services do not hold the same value (usually one of them has not picked up a change yet), the saved value cannot be read, or the server sets the value for a service, so your saved value takes effect there only once the server's is removed.

Locked rows

A row with a lock (🔒) and no control is a value you do not edit in the panel. The row shows the current value. There are three kinds:

When a change takes effect

Every setting has a rule for when a change applies. Details says "applies on restart" when it is not at once, and each settings table in these pages has an Applies column.

Applies What happens
At once The website re-reads its settings the moment you save. The chat service tells the other two services that settings changed, over the link they keep open to it, and each re-reads. If that message is missed, a regular re-read (every minute for the website, every five minutes for the ingest service) catches up
At a restart The service reads the value once when it starts. After you save one, the card shows a Pending restart box ("saved settings are not in effect everywhere yet", naming the service that still runs the old value) with a button: Restart the chat service or Restart the ingest service. If the site cannot restart services itself, the box gives the server command instead (sudo blackbranch restart stream-api or stream-ingest)
On the server only A locked row. Change it on the server; the website restarts with the new value

Settings the website reads apply at once. Settings the chat service or the ingest service read once at start wait for that service's restart, because changing something a service holds open (a connection, a module's addresses) in the middle of a stream is where things go wrong. The module switches are the main example: see Turning features on and off. A few things the ingest service holds follow the settings without a restart, such as the platform channels.

The restart buttons are for an install made with the Black Branch installer, because the site asks the server to restart a service through a fixed list of actions the server accepts. On another kind of install the box tells you to restart the service yourself. On such an install, rows the installer would manage (federation, sign-up) are marked 🔒 Managed outside Black Branch and say where to change them.

How settings are stored and resolved behind the panel is on Settings and modules.

Setup guides

On a place whose settings belong to something the setup pages set up (Stripe, PayPal, Ko-fi, Patreon, Streamlabs, YouTube, Twitch, Kick, Streamplace), a How to set up … card sits above the settings. It holds the same steps, in the same words, with the same values to paste for your own site, as the setup pages. If the module is off, the card says Switched off, and the module's switch is on the same place. A step you skipped during setup stays on this list, and the Doctor reminds you of it.

Doctor and Updates

These two places look after the install rather than the site:

Both are explained in Running it: every Doctor row is on Health and the Doctor.

Common problems

What you see Why What to do
You are sent to the home page from /admin You are not signed in as the admin account Sign in with the account you made on the first setup page.
A switch is greyed out The service that acts on it is not reporting, so the panel cannot show its real state Open Details under the row, which names the service; open the Doctor.
"Set on the server for the …" under a row The server's environment sets that value, and it wins Remove the variable on the server, or change it there.
A value you saved has no effect It applies at a restart, or the service has not picked it up yet Read Details; look for Pending restart on the card; restart the service.
Saving a locked value is refused The value lives on the server See Settings that live on the server.

Next: Admin Panel: AI

← Customizing