ServerAvatarDocs
Reference & troubleshooting

Branding & white-labelling

Put your own name, logos, favicon and accent colour on the panel with seven environment variables, see when Central's branding takes over, and name every file on the server with your own slug.

OSS Panel is built to be re-branded. Nothing in the product assumes its own name is the one your customers should see, and the branding is resolved in one place rather than scattered across templates.

The panel's dashboard with the default branding: the ServerAvatar wordmark at the top of the sidebar, a green accent colour on buttons and the active menu item, and the language switcher, theme toggle and avatar in the header

Not the same thing as the White-Label product

This page is about re-branding this panel: one server, one set of environment variables. ServerAvatar's separate White-Label product is a reseller platform, which is a different thing entirely.

The seven values

They live in the backend's .env, at /var/www/panel/backend/.env:

VariableDefaultWhat it changes
BRANDING_NAMEServerAvatarThe browser tab title, and the product's name inside translated sentences
BRANDING_LOGOThe v8 ServerAvatar wordmark, /brand/serveravatar-horizontal-light.svgThe sidebar logo in light mode
BRANDING_LOGO_DARK/brand/serveravatar-horizontal-dark.svgThe sidebar logo in dark mode
BRANDING_ICONThe v8 ServerAvatar mark, /brand/serveravatar-mark-light.svgThe compact logo, light mode
BRANDING_ICON_DARK/brand/serveravatar-mark-dark.svgThe compact logo, dark mode
BRANDING_FAVICON/brand/serveravatar-favicon.svgThe browser tab icon
BRANDING_PRIMARY_COLOR#35B87AThe accent colour the whole theme is generated from

The default logos are files the panel serves itself, so a fresh install shows the v8 brand without reaching any outside address. That is the complete list. There is no branding screen in the panel and no database table behind it: a deployment sets these once and the panel is theirs.

When Central's branding wins

By default the panel asks a central panel for its branding, connected or not, and shows that instead of its own. The panel reads Central's public site settings, keeps the answer for an hour (and remembers a failed attempt for five minutes, so a Central that is down is not asked on every page load), and applies it value by value:

  • Central's name, logo, icon, favicon and colour each replace the panel's own, but only where Central has a usable value. A value Central leaves empty keeps yours.
  • Central has no dark-mode logo or icon. If it publishes a logo, that logo stands in for both light and dark, rather than pairing Central's light logo with yours in dark mode. If it publishes no logo, your dark variant stays.
  • Central can also publish a tag line, links (privacy policy, terms, refund policy, GDPR) and a display message.

So BRANDING_* values only show where Central publishes nothing. To turn Central's branding off and keep your own, set CENTRAL_URL= (set, and empty) in the backend .env and clear the config cache as below. That is a separate setting from revoking Central's management token: see Central management.

Change the brand

  1. Edit the backend .env. Add only the values you want to change. Anything you leave out keeps its default.

    /var/www/panel/backend/.env
    BRANDING_NAME="Acme Hosting"
    BRANDING_LOGO="https://assets.example.test/acme-logo.png"
    BRANDING_LOGO_DARK="https://assets.example.test/acme-logo-dark.png"
    BRANDING_FAVICON="https://assets.example.test/acme-icon.png"
    BRANDING_PRIMARY_COLOR="#7c3aed"
    CENTRAL_URL=

    Leave out CENTRAL_URL= if you want Central's branding to keep winning.

  2. Clear the backend's config cache, so the new values are read rather than the compiled copy.

    cd /var/www/panel/backend
    php artisan config:clear
  3. Restart the frontend. It caches the branding response for an hour, so without this the old brand keeps rendering until the cache expires on its own.

    systemctl restart panel-frontend

    Substitute your own slug if you installed with one: the unit is ${PANEL_SLUG}-frontend.service.

How it reaches the browser

Worth knowing, because it explains the one-hour delay and where to look when a value does not take.

  1. The backend reads the environment into config/branding.php, and asks Central for its branding if CENTRAL_URL is set.
  2. It serves the result, unauthenticated, at GET /api/branding.
  3. The frontend fetches that and re-validates it every 3600 seconds, then merges it over the defaults and renders.

You can check what the backend is actually publishing at any time:

curl -s https://api.example.test/api/branding
{
  "branding": {
    "name": "ServerAvatar",
    "logo": "/brand/serveravatar-horizontal-light.svg",
    "logo_dark": "/brand/serveravatar-horizontal-dark.svg",
    "icon": "/brand/serveravatar-mark-light.svg",
    "icon_dark": "/brand/serveravatar-mark-dark.svg",
    "favicon": "/brand/serveravatar-favicon.svg",
    "primary_color": "#35B87A",
    "tag_line": null,
    "links": null,
    "display_message": null,
    "source": "panel"
  }
}

source says whose branding this is: panel (your .env and the defaults) or central. If the response already shows your brand but the panel does not, the frontend is still serving its cached copy: restart it.

What the panel does with each value

  • BRANDING_NAME becomes the page title: a page sets a plain title and the brand is appended, so you get Dashboard · Acme Hosting. It is also substituted into the sentences the product writes about itself, for example on the Applications screen of a server with no applications yet: "Pick a type and fill in a short form. Acme Hosting sets it up and shows its live status here."
  • BRANDING_PRIMARY_COLOR is not used as-is. A full palette is generated from it and injected as a stylesheet in the page head, so buttons, links, focus rings and charts all move together. Any CSS colour the panel can parse works; hex is the conventional choice.
  • The logo pair and icon pair are light and dark variants. Set both, or the panel falls back to the default for the mode you skipped.

Rules the values must satisfy

Each field is validated on its own, and one bad value never discards the others. It falls back to its default while the rest of your branding applies.

  • Assets must be an absolute http:// or https:// URL, or a root-relative path like /logo.png. Protocol-relative //host/logo.png, data: and javascript: URLs are rejected and never reach an src.
  • The colour must be one the panel can actually read. An unparseable value would otherwise drop the generated theme, so it falls back to #35B87A.
  • An empty name is not a name. BRANDING_NAME= with nothing after it is a set variable, so it resolves to the default rather than to an empty string.

Naming the server itself: PANEL_SLUG

Branding covers what a customer sees in the browser. PANEL_SLUG covers what they would find if they logged into the server over SSH.

It is an installer variable, defaulting to panel, and every artifact the installer creates is named from it. Nothing carries a product name:

ArtifactWith the default slug
Application directory/var/www/panel
System accountpanel
PHP-FPM unit and socketpanel-fpm.service, /run/php/panel-fpm.sock
Frontend and queue unitspanel-frontend.service, panel-queue.service
Web server vhostpanel.conf
Install log/var/log/panel-install.log

So a reseller installs with their own slug and the server looks like theirs throughout:

sudo PANEL_SLUG=acme bash install.sh --stack=lemp

The variable has to reach the script itself, so set it on the sudo command rather than before it, and download the installer first, since a piped script is read by a bash that your shell's variables do not reach either (see Installation).

This is enforced, not just intended

The product's own test suite fails the build if an upstream brand name appears in anything written onto a customer's server (cron files, Fail2ban config, a site's .env, a systemd unit) or anywhere in the installer. config/branding.php is the single exemption, because being overridable is the whole reason it exists.

Caveats

  • PANEL_SLUG is an install-time decision. Changing it afterwards means renaming the account, the directory, every unit and every config that points at them. Pick it before you install.
  • The branding endpoint is public. It has to be: the login page needs a logo before anyone has signed in. Do not put anything confidential in these values.
  • Asset URLs are fetched by the visitor's browser, not proxied by the panel. Host them somewhere your customers can reach, and on HTTPS, or the page will show mixed-content warnings.
  • There is no per-user or per-tenant branding. One server, one brand.
  • The panel contacts Central to ask for its branding unless CENTRAL_URL is empty. Revoking Central's management token does not turn this off.

On this page