Installing on your own server
One command in the terminal: the installer puts Docker in place, fetches the bundle, sets up nginx, issues the certificate and brings the product up.
Nothing is built on the spot and nothing is downloaded from the internet except the bundle itself. All you need is Debian, two domains and half an hour, most of which is the download. The license token comes before the install: how to get one.
What you will need
| What | Minimum | Recommended |
|---|---|---|
| System | Debian 13, amd64 | Debian 13, amd64 |
| Dedicated cores | 2 | 4 |
| Shared (burstable) cores instead | 4 | 6–8 |
| Memory | 4 GB | 8 GB |
| Swap | 2 GB, required | 2 GB |
| Disk | 40 GB SSD | 100 GB SSD |
| Operators | up to 5 | up to 25 |
Debian 13 or newer only. Ubuntu and other distributions are not supported, and that is a deliberate narrowing: one tested system instead of a zoo, so that this guide and our updates do not drift away from what you run. The architecture is amd64. An arm build is a separate request.
About shared cores. The numbers come from a server with dedicated cores and a full reservation. On an ordinary VPS the cores are shared and oversubscribed: the advertised “4 cores” turn out to be noticeably fewer, especially at busy hours. So for shared cores take about twice the nominal count — that compensates for oversubscription, it is not headroom for growth.
About steal time. This is the least obvious reason for slowness, and it is worth settling before you buy the server. On oversubscribed hosting the processor is formally there, but the hypervisor takes it away. If steal time is consistently above 5 per cent, background jobs and image processing suffer first: they get noticeably slower while the interface still looks alive. On heavily oversubscribed hosting we cannot promise responsiveness. The installer measures steal time as its first step and says what it saw. You can measure it yourself at any time with vmstat 1 10 — the st column is steal time as a percentage.
About the disk. Only attachments need counting. The database takes about 1.6 KB per message: even a hundred thousand messages a month come to less than 2 GB a year. On a live server attachments take fifty times more than the database, and they grow from what your customers send. Two levers are in the product: attachment retention and offloading to S3. With a heavy flow of images S3 is cheaper than buying disk.
No build happens on your server. We ship ready-made images, and that lowers the requirements noticeably: building the frontend alone asks for about 8 GB of memory, and if it ran on the spot the minimum profile would be twice as high.
What to prepare before the command
- Two domains, both A records pointing at this server: the main one for the interface (
support.example.com) and a separate one for the API — the widget on your sites and the channels' webhooks use it (api.support.example.com). The panel itself reaches the API through the interface's address (/api,/ws). The records have to have propagated already — the certificate is issued by a domain check, and that does not pass on DNS that has not spread yet. - The license token: a line starting with
SHLIC1.. We send it on the sale. It also carries the address the installer fetches the bundle from, so nothing else has to be passed. - Root on the server. The installer installs packages and writes to
/opt,/etc/supporthuband/etc/nginx.
The one-command install
curl -fsSL https://get.supporthub.cc/install | bash -s -- \
--key SHLIC1.… \
--domain support.example.com \
--api-domain api.support.example.com \
--email admin@example.com| Argument | What for |
|---|---|
| --key | the license token. Required: the address the bundle is fetched from comes out of it |
| --domain | the address of the interface |
| --api-domain | the address of the API for the widget and webhooks |
| the address for certbot: certificate expiry notices go there | |
| --bundle <файл|url> | take the bundle from here instead of downloading it from us. For air-gapped networks |
| --no-tls | leave nginx and certbot alone: you have your own proxy or load balancer |
| --app-dir | where to install. /opt/supporthub by default |
| --dry-run | print the plan and change nothing |
What happens, step by step — you see them in the output:
- The server. System, architecture, memory, swap, disk, steal time, the way out to our server. Blockers stop the install. Remarks are printed and do not get in the way.
- Docker. If it is missing, it is installed from the Docker repository for Debian, together with
docker-compose-plugin. - The bundle. Downloaded from the address carried in the token into
/var/tmp. A broken download is not a problem: running it again continues from where it stopped. - Bundle verification. Checksums and, if we gave you the public key, the signature. Then the images are loaded and the files laid out.
- Settings.
/opt/supporthub/.envfills itself in: the database password and the session signing key are generated on the spot, the addresses come from the arguments, and the number of worker processes is chosen by the amount of memory. - The maintenance agent. The
supporthub-agentservice is installed on the host — the update button and support access in the License section work through it. Asupporthubcommand for the same actions from the terminal comes with it. - The license. The token is placed in
/etc/supporthub/license.key— as a file, not an environment variable, so it never shows up indocker inspector in shell history. - nginx and the certificate. Two server blocks and certbot. On the interface's address
/api/and/ws/go to the backend, the rest to the interface. If nginx on this server is already configured for your domains, we do not overwrite your config — we only check that the interface passes/api/and/ws/on and, if it does not, print the two locations to add. - The setup code. The installer issues it itself and prints it at the end.
- Start-up.
docker compose up -d, then waiting until the backend answers on/api/health.
To see what would be done without changing anything:
curl -fsSL https://get.supporthub.cc/install | bash -s -- --key SHLIC1.… \
--domain support.example.com --api-domain api.support.example.com \
--email admin@example.com --dry-runVerifying the bundle signature. If we gave you the release public key, put it on the server and point a variable at it — then the signature is actually verified, not just noted:
SH_RELEASE_PUBKEY=/root/supporthub-release.pem curl -fsSL https://get.supporthub.cc/install | bash -s -- --key …Air-gapped networks. If the server has no way out to the internet, ask us for the bundle as a file and hand it to the installer through --bundle: it then downloads nothing at all. The installer script has to come with you too in that case — it is inside the bundle under the name bootstrap.bash:
tar -xzf supporthub-dedicated-2026.09.30.tar.gz bootstrap.bash
bash bootstrap.bash --key SHLIC1.… --domain support.example.com \
--api-domain api.support.example.com --email admin@example.com \
--bundle /root/supporthub-dedicated-2026.09.30.tar.gzcertbot will not issue a certificate in an air-gapped network: install with --no-tls and set up your own proxy, or put the certificate in place yourself.
Why the panel needs /api on its own address. The sign-in is kept in a cookie the browser never shows to the page's scripts and sends only to the panel's address, on the /api/auth path, and the access key lives in the tab's memory. So the interface calls the API on its own address, and nginx passes /api/ and /ws/ on to the backend. The SSO sign-in comes back the same way (https://support.example.com/api/auth/sso/callback — the address to register with the provider). The API domain stays for the widget on your sites and for webhooks: the embeds and CSP rules on your sites need no change.
First sign-in
At the end the installer prints the address and the setup code — twelve characters in the form ABCD-EFGH-JKLM. Open https://support.example.com/setup in a browser, with your own domain in place of ours — the one you passed to --domain. The first-run wizard asks for the code, and then creates the owner and the first project. The owner email and password you enter there are your sign-in details: after the last step the wizard signs you in itself and opens the inbox.
The code exists because a fresh server is on the internet before its owner gets to it: without one, whoever opened the page first would become the owner. It sits in /etc/supporthub/setup-code and is asked for once — once the owner exists, the wizard closes for good and the /setup page stops existing.
If the code gets lost there is no need to dig through email: the file belongs to root, and the maintenance command on the server shows it.
sudo supporthub setup-code show the issued code
sudo supporthub setup-code --reissue issue a fresh oneA reissue is allowed only while there is no owner: the previous code stops working and the new one is printed on screen. On an install that already has an owner the command refuses and says why — issuing a code there would mean handing an outsider the right to create a second owner.
Every sign-in after that is an ordinary one: the sign-in page of your install, the owner email and password. A forgotten password is reset by email from the same place, so it is worth setting up mail right after the first sign-in — without SMTP the reset message does not go out.
The wizard does not ask about the license: the installer has already placed the token. The key field in the wizard is there for an install that ran without a token, and a key typed there takes precedence over the file.
Everything after that happens inside the product: operator invitations, connecting channels, settings. Your own mail is set there too: Settings → License, the Your own mail (SMTP) block — server, port, encryption, login and sender address (required once a server is set). It takes effect within half a minute, with no restart, and all of the product's own mail goes through it: password resets, email confirmation, operator invitations, template emails, analytics reports and notifications to the team.
Until a server is set there, mail goes through SMTP_* in /opt/supporthub/.env (edited by hand and applied with docker compose up -d). If that is empty too, nothing goes out, and the backend and Celery logs keep a platform_mail.not_configured line. The installer reminds you about this too. Replies to customers and project emails take their own route: the project's email channel SMTP or the project's SMTP.
Activating the license
The install needs at least one way out to our license server. It is not a permanent connection: the check runs at start-up and then every six hours, and what goes out is the license id, the server fingerprint, the build version, the number of active operators and a timestamp. Message contents and personal data are not sent and are not available to us.
A fresh install runs for no longer than seven days without activation. At least one successful check has to happen in that time. After it, the install survives a loss of connection for as many days as the license says: an outage on our side should not become one on yours. The first check usually happens by itself while you fill in the wizard — the license state is visible in the License section.
If the server is air-gapped, it never reaches out at all. Tell us up front: you send the server fingerprint, we issue a receipt offline, and you place it as a file. The fingerprint is shown in the License section, and this command prints the same thing:
docker compose exec backend python -c "from app.licensing import fingerprint; print(fingerprint.current())"The WhatsApp profile
By default only what everybody needs comes up. The WhatsApp gateway is switched on with a profile:
cd /opt/supporthub
docker compose --profile whatsapp up -d # the WhatsApp gatewayWithout WhatsApp you save a container and its memory. Telegram bots need no container of their own: the backend receives and serves them.
Backups
They are your responsibility, but the recipe is ready. Two things are needed: the database and the attachments directory.
#!/bin/bash
set -euo pipefail
DEST=/var/backups/supporthub
DAY=$(date +%F)
mkdir -p "$DEST"
cd /opt/supporthub
# The database. Through pg_dump inside the container: the snapshot is
# consistent and nothing has to be stopped.
docker compose exec -T db pg_dump -U postgres supporthub | gzip -6 > "$DEST/db-$DAY.sql.gz"
# Attachments. This is a docker volume, so copy from inside the container.
docker compose exec -T backend tar -cf - -C /app media | gzip -6 > "$DEST/media-$DAY.tar.gz"
# Settings, license and setup code: small, but a restore without them
# is incomplete.
tar -czf "$DEST/conf-$DAY.tar.gz" /opt/supporthub/.env /etc/supporthub
find "$DEST" -name '*.gz' -mtime +14 -deletechmod +x /usr/local/bin/supporthub-backup
echo '15 3 * * * /usr/local/bin/supporthub-backup' | crontab -A copy on the same disk saves you from a mistake, not from losing the server: take it somewhere else.
Restoring:
cd /opt/supporthub
docker compose down
docker compose up -d db
gunzip -c /var/backups/supporthub/db-2026-09-30.sql.gz | docker compose exec -T db psql -U postgres supporthub
docker compose up -dUpdates
An update is the same install command with a newer bundle. The installer remembers the previous image tag, so a rollback takes a minute:
/opt/supporthub/rollback.bashA database backup is taken before the version is switched — that is what makes the rollback unconditional: images roll back in a minute, a database schema does not. Previous images are not removed from the server, otherwise there would be nothing to roll back to. If space is tight, remove them by hand and only the tags you are sure about.
/api/ and /ws/ on the interface's address. From the version where the panel calls the API on its own address on, an update checks nginx first. The config the installer wrote (/etc/nginx/sites-available/supporthub.conf) it extends itself: two locations in the interface's server block, before its location /. The previous file stays next to it with a .prev-<date> suffix, and if nginx -t does not accept the new one, it goes back in place. Your own config, or a proxy on another machine, the update does not edit: if the interface does not pass /api/ and /ws/ on, it stops before the database backup and the version switch and prints both locations — their sample is below, in step 3 of the manual install. Add them, run nginx -t && systemctl reload nginx and start the update again. A proxy that is not on this server cannot be checked: once it passes /api/ and /ws/ on, add the line SH_PANEL_API_PROXIED=1 to /opt/supporthub/.env.
Rolling back to a version where the panel called the API domain. The earlier interface keeps the refresh token itself and expects it in the response body, while the new version's compose tells the backend the panel is on its own address. After rollback.bash to such a version add the line AUTH_REFRESH_TOKEN_IN_BODY=true to /opt/supporthub/.env and run docker compose up -d, or operators get sent to the sign-in every half hour. Remove the line before the next update.
Update access. The settings have a switch with which you allow or forbid us to come to the server to install updates. While it is off we do not go to the server at all — not “we go but change nothing”. Updates are then handed to you as a bundle and you install them yourself. Revoking access affects neither the product nor the license term. The details are in maintaining the install.
Installing step by step
The installer does everything described below, and this section is for two cases: when something of yours already lives on the server and you want to control every step, or when you need to understand what exactly happened. If you installed with one command, you can skip it.
1. Check the server
./preinstall-check.bashThe script is inside the bundle, changes nothing and only looks: the system, architecture, memory, swap, disk, docker, the way out, nginx and steal time. The installer runs the same checks as its first step.
2. Install Docker
apt install ca-certificates curl
install -m 0755 -d /etc/apt/keyrings
curl -fsSL https://download.docker.com/linux/debian/gpg -o /etc/apt/keyrings/docker.asc
chmod a+r /etc/apt/keyrings/docker.asc
echo "deb [arch=amd64 signed-by=/etc/apt/keyrings/docker.asc] https://download.docker.com/linux/debian $(. /etc/os-release && echo $VERSION_CODENAME) stable" > /etc/apt/sources.list.d/docker.list
apt update
apt install docker-ce docker-ce-cli containerd.io docker-compose-pluginIt has to be docker-compose-plugin (the docker compose command), not the old docker-compose.
3. Domain and certificate
nginx runs on the host, not in a container. That is more convenient for you: certbot is right there, the config is where you are used to it, and product updates do not touch your TLS. The containers listen on loopback only (127.0.0.1:3000 and 127.0.0.1:8000), and your nginx is what lets them out.
The blocks are written for port 80, and certbot adds 443, the certificate and the redirect. The other way round does not work: a config with ssl_certificate before the certificate exists takes nginx down on the very first reload.
server {
listen 80;
server_name support.example.com;
client_max_body_size 257m; # attachments: a file up to 256 MB plus room for the request
# The API and the operator socket on the interface's address: the
# sign-in (a cookie on /api/auth) and SSO only work this way.
location /api/ {
proxy_pass http://127.0.0.1:8000;
proxy_set_header Host $host;
proxy_set_header X-Real-IP $remote_addr;
proxy_set_header X-Forwarded-For $proxy_add_x_forwarded_for;
proxy_set_header X-Forwarded-Proto $scheme;
proxy_http_version 1.1;
proxy_set_header Upgrade $http_upgrade;
proxy_set_header Connection "upgrade";
proxy_read_timeout 3600s;
}
location /ws/ {
proxy_pass http://127.0.0.1:8000;
proxy_set_header Host $host;
proxy_set_header X-Real-IP $remote_addr;
proxy_set_header X-Forwarded-For $proxy_add_x_forwarded_for;
proxy_set_header X-Forwarded-Proto $scheme;
proxy_http_version 1.1;
proxy_set_header Upgrade $http_upgrade;
proxy_set_header Connection "upgrade";
proxy_read_timeout 3600s;
}
location / {
proxy_pass http://127.0.0.1:3000;
proxy_set_header Host $host;
proxy_set_header X-Real-IP $remote_addr;
proxy_set_header X-Forwarded-For $proxy_add_x_forwarded_for;
proxy_set_header X-Forwarded-Proto $scheme;
}
}
server {
listen 80;
server_name api.support.example.com;
client_max_body_size 257m;
location / {
proxy_pass http://127.0.0.1:8000;
proxy_set_header Host $host;
proxy_set_header X-Real-IP $remote_addr;
proxy_set_header X-Forwarded-For $proxy_add_x_forwarded_for;
proxy_set_header X-Forwarded-Proto $scheme;
# The widget on your sites gets its answers over WebSocket.
proxy_http_version 1.1;
proxy_set_header Upgrade $http_upgrade;
proxy_set_header Connection "upgrade";
proxy_read_timeout 3600s;
}
}apt install certbot python3-certbot-nginx
certbot --nginx -d support.example.com -d api.support.example.com4. Unpack the bundle
mkdir -p /root/supporthub-bundle && cd /root/supporthub-bundle
tar -xzf /path/to/supporthub-dedicated-*.tar.gz
./install.bash --check-only # verify integrity, change nothing
./install.bash # install--check-only checks the checksums and prints what is in the bundle. If we gave you the signing public key, verify that too:
./install.bash --pubkey /path/to/supporthub-release.pem --check-onlyThe first run lays the files out in /opt/supporthub, loads the images and stops: the settings have to be filled in next.
5. Fill in the settings
nano /opt/supporthub/.envThe required fields are marked in the file. In short:
DB_PASSWORD: the database password, invented once. It ends up in the WhatsApp gateway connection string, so letters and digits only:openssl rand -hex 24.SECRET_KEY:openssl rand -base64 48. Changing it signs every operator out.FRONTEND_URL,BACKEND_PUBLIC_URL,BACKEND_PUBLIC_WS,WEBHOOK_BASE_URL: your addresses from step 3.WEBAUTHN_RP_ID,WEBAUTHN_ORIGIN: for device sign-in.SMTP_*: your SMTP, unless you set it in the product. Mail is easier to set in Settings → License → Your own mail (SMTP): it takes precedence overSMTP_*and changes without a restart. With SMTP in neither place, operator invitations, password resets and notifications do not go out.
On the minimum profile (2 cores, 4 GB) set:
SH_WEB_CONCURRENCY=1
SH_CELERY_CONCURRENCY=2
SCRIPTS_MAX_CONCURRENCY=2Otherwise two backend processes together with Celery run into the memory ceiling, and a spike while processing attachments ends in a killed worker. The last line limits the script sandbox to two runs at a time: each can take up to 128 MB.
For the System section in the admin area to see the containers, fill in the docker group id:
getent group docker | cut -d: -f36. Place the license token
install -d -m 750 -g 1000 /etc/supporthub
install -m 640 -g 1000 /path/to/license.key /etc/supporthub/license.keyThe token lies in a file rather than an environment variable: that way it shows up neither in docker inspect nor in shell history. Group 1000 is the one the backend runs as inside the container. With root:root ownership the file is unreadable from there, and the install silently drops to read-only.
Without a token the install still comes up, but in read-only mode: incoming messages are accepted and stored, and replies are not possible.
7. Issue the setup code
Without a code the first-run wizard lets nobody in, and that is right: the code closes the window between “the server appeared on the internet” and “the install has an owner”. Invent a string (a random one is fine) and put it next to the license:
openssl rand -hex 6 | install -m 640 -g 1000 /dev/stdin /etc/supporthub/setup-code
cat /etc/supporthub/setup-codeCase, hyphens and spaces mean nothing when it is checked: the code is typed by hand.
8. Start it and open the page
cd /opt/supporthub
docker compose up -d
docker compose psFrom here it is the same as the one-command install: open your address, the wizard asks for the setup code and creates the owner.
When something does not work
- 1The installer stopped at the server checkIt prints which check failed. The blockers are: a system that is not Debian 13, not amd64, less than 4 GB of memory, less than 40 GB of disk, missing swap on a 4 GB machine, and steal time above 5 per cent. All of that is fixed on the hosting side, and it has to be fixed before the install.
- 2The bundle did not downloadCheck that the server can reach the internet and that the license token is valid. If there is no way out, ask for the bundle as a file and install with
--bundle. - 3The backend did not come up and the installer showed the logMost often it is the database that is not ready yet — compose waits for it by itself, but on a slow disk the first start takes a minute or two — or an empty field in
.env. Settings are edited in/opt/supporthub/.env, thencd /opt/supporthub && docker compose up -d. Running the installer again does not overwrite the settings. - 4certbot did not issue the certificateAlmost always DNS: both names have to point at this server and the records have to have propagated. The installer does not stop in this case — the product comes up and works over http — and prints the command to issue the certificate later.
- 5The first-run wizard does not open and the page sends you to sign-inThat means the install is already claimed: the owner exists. This is not a fault but a protection — the wizard does not open a second time. Sign in the ordinary way, with the owner email and password. A forgotten password is reset by email from the sign-in page. No setup code is needed for that, and no new one is issued.
- 6The setup code is lostWhile there is no owner yet,
sudo supporthub setup-codeon the server shows the code, andsudo supporthub setup-code --reissueissues a new one in place of the old. On a claimed install both commands say there is no code and will not be one: an ordinary sign-in is what is needed there. - 7The wizard says the setup code is not configuredThe
/etc/supporthub/setup-codefile is missing or empty. Issue the code —sudo supporthub setup-code --reissue, or by hand following step 7 of the manual install — and reload the page: the file is read on every check, and the containers do not need restarting. - 8The interface opens but you cannot sign in or no data loadsAlmost always the interface's nginx does not pass
/api/on to the backend: the panel calls the API on its own address, and without that location its requests land in the interface and get a 404. To check:curl -s https://support.example.com/api/healthmust return the backend's JSON, not a page. The locations' sample is in step 3 of the manual install. If only the widget on your sites does not load, check the API domain:BACKEND_PUBLIC_URLgoes into the frontend build, and a changed address needs a new build. - 9The SSO sign-in does not workThe provider sends the browser back to
https://support.example.com/api/auth/sso/callback— that is/api/on the interface's address too. The same address has to be registered with the provider as the redirect URI. - 10The operator interface freezes
/ws/is missing on the interface's address, or its WebSocket settings are:proxy_http_version 1.1, theUpgrade/Connectionheaders and a largeproxy_read_timeout. - 11Attachments do not send
client_max_body_sizein nginx. - 12A banner about the license showed upThere is no connection to the license server. Check the way out. The product keeps working for as many days as the license says and recovers by itself once the connection is back.
- 13Everything is slow but the processor looks idleSteal time. Go back to “What you will need”.

