Black Branch/Docs
All sections

Admin Panel: Site

This page is for an owner editing the site's own settings. After it, you will know every card in the Site group: the streamer, the site's name, the legal details, who may sign in from other servers, the community's service account and channels, alerts to your phone, the running schedule, mail, sign-in providers, backups and the install values, and the places Community, Points, Leaderboard, Badges, Support tickets and Moderators. The Admin Panel opens here, on Site β†’ Site.

Many rows here are locked (πŸ”’): they live on your server, not in the panel, and the row shows the value and how to change it. "On the server" in the tables below means one of these. Settings that live on the server explains why.

Site

The first place in the group, also named Site, has eleven cards, in this order.

Streamer

Setting Default Applies What it does
Streamer display name not set At once Your name as shown above the player, and in the stream title when there is none. The setup pages' Your site page asks for it
Streamer account your admin account At once The streamer's Matrix ID. Staff status, the public avatar and moderation with your own platform link use it. The first setup page fills it in with the account you made there

Site

All locked. The display values among them are changed with sudo blackbranch set, and explained on Site name, theme and looks.

Setting Changed with What it is
Site name SITE_NAME The site's name: page titles, the sign-in page, the install prompt. Required
Short name SITE_SHORT_NAME The name under the app icon on a phone. Unset = the site name
Site description SITE_DESCRIPTION One sentence for search results and link previews
Share card line SITE_TAGLINE The line under the name on the picture shown when a link to your site is shared
Home heading SITE_HOME_HEADING The heading a signed-out visitor sees on Home. Unset = the site name
Home intro SITE_HOME_INTRO The line under it
Icon folder SITE_ICON_SET Where your own icons are. Unset = the built-in neutral icons

The site's addresses are not on this card. They are in Install values, at the bottom of the page.

Operator, Contact e-mail, Governing law and Last updated are locked, changed with sudo blackbranch set (LEGAL_OPERATOR, LEGAL_CONTACT_EMAIL, LEGAL_GOVERNING_LAW, LEGAL_EFFECTIVE_DATE). The card's last row, Liability cap (USD), is a panel setting (default 50, applies at once): the amount the Terms name as the most your site is liable for. What these do on the legal page is on Site name, theme and looks.

Sign-in from other servers

Who may sign in to your site with an account made on another Matrix server. This is not federation: federation is about servers exchanging messages, this is about whose accounts may sign in to your website. Accounts on your own server always sign in. Server names are matched exactly: example.org does not cover chat.example.org, and an entry that is not a server name is refused when you save it.

Setting Default Applies What it does
Sign-in from other Matrix servers off At once off: only your own server's accounts. on: any server not on the deny list. allowlist: only the servers on the allow list
Servers allowed to sign in none At once For allowlist mode
Servers refused sign-in none At once Never allowed, whatever the mode. Someone already signed in from one is signed out at their next request

A change applies at once, to new sign-ins and to people already signed in. While this is off, the sign-in page does not offer the box for an account from another server at all.

Community service

Read-only: the account your install uses to make and look after the community's rooms. The card says "Set when this site was installed."

Setting What it is
Community account name The name of that account (blackbranch unless the install chose another). It never changes
Rooms kept as set here Whether your server keeps the community's rooms the way Site β†’ Community sets them. On for a new install. Switched on the server with sudo blackbranch community on or off (see The server command)

Channels

How your server looks after the community's channels.

Setting Default Applies What it does
Keep changes made in Element Off At once Off: a change made to a channel outside the panel (in Element, say) is put back the way the panel has it. On: it is kept and only listed, and then your own panel edits to channels that already exist are only listed too. See What your server keeps for you
Longest a channel keeps messages 365 days At the chat server's next start The most days any channel may keep its messages, from 1 to 3650; 0 keeps them forever. A channel that picks no time keeps them this long. See How long messages are kept

Alerts to your phone

Two credentials for push alerts to whoever runs the site, through ntfy: Urgent alerts topic (critical alerts) and Quiet alerts topic (the rest). One topic is enough. The topic address is the secret, so anyone who knows it can read your alerts. Both apply at once. Leave them empty to send no push alerts; problems still show in the Doctor. More: Health and the Doctor.

The server also alerts you by itself, through these topics (or an ntfy topic or email command set in .env instead), when a backup or restore check fails, an update goes back, the disk runs low or a certificate nears expiry. See Alerts from the server.

Running the site

Setting Default Applies What it does
Time zone UTC At once Picked from a list of names like Europe/Berlin. The quiet hour and daily jobs use it. The setup pages fill it in from your browser
Data since no limit At once The first day your site's history counts from (YYYY-MM-DD), for example the day it opened
Quiet hour 4 At once The hour (0 to 23, in your time zone) when backups and security updates run. See quiet hour

Mail

Optional, and empty on a new install. Without a mail server your site sends no mail: sign-up asks for no address, and a forgotten password is reset on the server (Resetting a password). With one, the sign-in page offers "Forgot password?", and a new account confirms its address by mail. Your mail provider gives you the server, port and user name; most use STARTTLS on port 587.

Setting Default What it does
Mail server not set Your provider's SMTP server, such as smtp.example.com. Not set = no mail
Mail server port the usual one Unset = 587 for STARTTLS, 465 for TLS, 25 for plain
Mail connection starttls starttls, tls, or plain (unencrypted: only for a mail server on the server's own network)
Mail server user name, Mail server password not set What the mail server signs in with. No user name = a relay that needs no sign-in
Mail sender address noreply@ your domain The address mail comes from. Your provider must allow it

These are read by your server, not by the site: saving asks the server to rewrite the sign-in service's settings, as with the federation switch, and the row says when the server has applied it. Then run sudo blackbranch mail test you@example.com on the server: the Doctor's Mail row turns green once a test message was sent, and red with the reason when it failed. Accounts made before you set mail have no address yet; they add one on their account page before they can use "Forgot password?". On an install whose homeserver is not the one the installer runs, the rows are marked πŸ”’ Managed outside Black Branch: set mail in that homeserver's own sign-in service instead.

Sign-in providers

Optional, and all off on a new install. Each provider you switch on adds a Continue with … button to the sign-in page, beside the username and password, so people can sign in with an account they already have: Google, Discord, Twitch, and one OpenID server of your own (Authentik, Keycloak, Zitadel, Authelia or any OpenID Connect server).

For each one:

  1. Make an app at the provider. Google: Google Cloud console β†’ APIs & Services β†’ Credentials β†’ Create credentials β†’ OAuth client ID, type Web application. Discord: the Discord Developer Portal β†’ Applications β†’ New Application β†’ OAuth2. Twitch: the Twitch developer console β†’ Applications β†’ Register Your Application, category Website Integration (its own app, not the one Twitch chat uses). Your own server: a confidential OAuth2 / OpenID client.
  2. Switch the provider on; its fields appear. For your own server, save its address first: https://…, exactly as the server names itself (with or without the trailing /).
  3. Copy the Redirect URL to paste at the provider shown under the provider's switch (the Copy button) into that app: Google calls it an Authorised redirect URI, Discord a Redirect, Twitch an OAuth Redirect URL. For Google, Discord and Twitch it never changes; for your own server it belongs to the address you saved.
  4. Paste the app's client id and secret, and, for your own server, the button's name if you like (unset = the server's address).
Setting Default What it does
Sign in with Google / Discord / Twitch / your OpenID server off Shows that provider's button on the sign-in page
… client id, … client secret not set From the app you made. The secret is kept by the server and never shown again
OpenID server address not set Your server's issuer address, https://… only
OpenID button name the server's address What the button says after "Continue with"

Like mail, these are read by your server: saving asks it to rewrite the sign-in service's settings and restart it, and the row says when that is done. The Doctor has one row per provider: green once the sign-in service offers it and the provider answers; red with the reason when a field is missing, the provider does not answer, or your own server names a different address for itself.

What a viewer sees: on the sign-in page, a button per provider. The first time, after signing in at the provider, they pick a username (the provider's own name is suggested when it has one; Google's is not, since it is usually a real name) and land on your site. After that the button signs them straight in. A provider never takes over an existing account with the same name.

Backups

Setting Default What it does
Backup target local Where the nightly backup goes: local (a folder on this server, /opt/blackbranch/backups), s3 (an S3-compatible bucket such as Backblaze B2 or Cloudflare R2) or sftp (another server over SSH)
Backup address empty For a bucket: s3:https://<endpoint>/<bucket>. For SFTP: sftp:<user>@<host>:/<folder>, or sftp://<user>@<host>:<port>/<folder> for a folder inside that account's home. Empty for local
Bucket region the provider's default When the provider asks for one (Cloudflare R2: auto). Shown only when the target is s3
Bucket access key id, Bucket secret key not set The bucket's keys. Read only by the server's backup job. Shown only when the target is s3
Daily backups kept 7 How many days of nightly backups are kept
Weekly backups kept 4 How many weeks keep one backup each, beyond the daily ones

A change applies at the next backup. To try it now, run sudo blackbranch backup on the server. For SFTP, first add the key that sudo blackbranch backup key prints to the other server's account. Backups, restores and the recovery sheet are explained on Backups and restore.

Install values

The last card, closed until you open it. It shows the values your site was installed with, read-only: "Set when this site was installed. To change one, change it on the server, then restart the site." Most of them can never change, because accounts, sign-ins and permission rules are built from them.

Value What it is
Site address, API address, Live socket address https://example.com, https://api.example.com and wss://api.example.com. Every sign-in return link, payment return link and permission rule is built from them. Permanent
Matrix server name The :example.com part of every account id. A homeserver can never be renamed. Permanent
Matrix homeserver address https://matrix.example.com: where Matrix apps reach the homeserver. Your site trusts this address
Matrix federation address Where other Matrix servers reach yours, if federation is on
Matrix sign-in issuer, Matrix sign-in client id, Matrix sign-in client secret How your site signs people in through the homeserver's sign-in service, MAS. Made by the installer
Legacy site id, Legacy Matrix data prefix Only for a site or homeserver that ran before it became a Black Branch install. Shown only when set

What the installer writes, value by value, is on The install's settings file.

Community

The second place in the group. Its own cards run your community rooms: Channels and categories, Last applied and Roles, explained on Community rooms. Under them are three more cards.

Federation and sign-up

Your homeserver, where accounts and the community rooms live. What federation and sign-up mean, and how to choose, is on The homeserver; this card is where you change them.

Setting Default Applies What it does
Federation Off Within a minute (see below) Whether other Matrix servers can exchange messages with your community's rooms. It does not decide who may sign in to your site: the Sign-in from other servers card on the Site page does
Let people make accounts your answer to Who can join? in setup Within a minute (see below) Yes or No: whether anyone may make a new account on the homeserver's own sign-in pages. Unset = No, and always No while setup runs

Both are read by your server, not by the site. When you save either, the site asks the server to rewrite the homeserver's settings and restart it, which takes up to a minute. The row says it is applying, then Applied by the server, or that the server could not apply it, with the reason. Once the homeserver is back, the Doctor row Federation matches its switch turns green. On an install whose homeserver is not the one the installer runs, the two rows are marked πŸ”’ Managed outside Black Branch and say where to change them instead.

During a raid, your moderators' lockdown can close sign-up for you and reopen it afterwards; see Raid lockdown.

Community rooms

Read-only: the room ids (!…) of the community space and #general, as the server made them when it set up the community. The card says "Found by the server when it made the community. Nothing to change here." The server checks these rooms at every start, boot and restore.

Bridge accounts

Accounts that belong to a chat bridge, each a full Matrix ID like @bot:example.com (none by default, applies at once). Your server leaves their power alone and never kicks them. The Discord bridge that comes with the install is known without being listed. See Bridge accounts.

Discord

Under Community. The Discord bridge's page: its state at the top (on, off or waiting), then four steps: The bot (the Discord application and its token), Import the Discord server, Link the Discord server and Links (each room and its Discord channel). Every step is explained on Discord.

Points

The economy, in this order:

Card What it holds
How it reads A preview of how your points name, symbol and icon look on the site
Name and look Locked display values; see Points name and icon
Buying Points can be bought, off by default
Earning Ten numbers: what each kind of taking part pays, and the caps on it. A change applies from the next award
Store prices Each store item's price, typed as a price in points, with a line saying about how much a typical viewer earns per stream. Badges and name styles are priced in the store itself

Earning and prices are separate: a store price is kept as a number of streams of earning, so when you change what a stream earns, prices move with it. Every setting is explained on Points.

Leaderboard

What the Leaderboard card on Home offers. Both settings apply at once.

Setting Default What it does
Hide the Leaderboard Off On = Home has no Leaderboard card
Leaderboard boards switched off none (all offered) One switch per board: points earned, the vote score, the vote score per 100 messages, streams, top messages and top emotes. Each board shows under the name Home gives it, so the points and vote score boards carry your own words. On means offered. The last board that is on cannot be switched off; to remove them all, use Hide the Leaderboard

What each board ranks is on Home and forums.

Badges

The badge catalogue. Upload image and type a Badge name to make one; badges are small icons. On each badge in the list:

Mark What it does
β˜… Makes this the Supporter badge, given to paying subscribers
πŸ›‘ Makes this the mod badge
$ Puts it in the store for a price in points, or changes the price. The Supporter and mod badges cannot be sold
Γ— Deletes it

Viewers equip the badges they have unlocked themselves; there is no handing a badge to one person here.

Support tickets

Help requests a viewer escalated from the help pop-up to a person. When the AI help desk is off (see Help Desk), every help request lands here.

Above the tickets is a Forward to Black Branch card, with a switch, a Send button per ticket and Send all. Forwarding is still being built, so for now the card is greyed out and says "Forwarding tickets to Black Branch arrives in a later release." Your tickets are all here in the meantime. Reports about other people are not here: mods read them in Mod Panel β†’ Reports (see Reports and the mod log).

Moderators

Who holds each role, in four cards. Each list has a name box and a button to add someone, and a remove button beside each person. Only admins can change any of them. What each role can do is on Roles and permissions.

Card What it holds
Admins Everyone with the Admin Panel and every power on the site. Type a name and press Make admin; Remove admin beside each. Any admin can make or remove another, but the site always keeps at least one. A second admin is also how you get back in if one admin account is lost. With nobody able to sign in as an admin, sudo blackbranch user admin <name> on on the server makes one (see The server command)
Moderators Your mods, with Make moderator and Remove moderator (No moderators yet. when empty). A new mod gets the Mod Panel at once, and moderator power in the community rooms within minutes, from your server; removing one takes both away. The same as a person's user card or /mod and /unmod in chat
Staff People who can do everything a mod can in the community rooms and also edit their channels, with Give Staff and Remove from Staff. Roles, who can see a channel, how long it keeps messages and encryption stay with admins
House accounts One setting, Extra staff accounts (none by default, applies at once): more Matrix IDs that are always Supporters, with badges set by hand, and are listed with the bots in the community, besides the streamer and the bot

Next: Turning features on and off

← Customizing