HQ (official edition)
The official server runs HQ alone - sign in, HQ's staff, and the server itself in HQ › Server and HQ › Settings › This server, with its own Email, Files and DB Studio.
HQ is the official edition's only panel: the licence business (licences, plans, payments, customer care and the
services the official server runs for everyone) and, under Server, the server itself. The official server hosts
nothing for anyone else: it has no Server Admin, Reseller Panel, Control Panel or Hfog Cloud, and their addresses answer
"not found". It keeps the licence server, the licence shop and account pages, the partner API, the public status page,
the website, the help site, the downloads, Hfog Tunnel and the DNS server of the company's own domain, and has its
own Email, Files and DB Studio, kept apart from every other server and domain. HQ has its own address, hq. the
domain on Server Admin's port (8443), and its own logins.
Where: https://hq.yourdomain.com:8443/ (official edition only)
| Address | What it is |
|---|---|
hq. (port 8443) |
HQ |
mail. |
Mail, the webmail of the domain's mailboxes (see Email) |
smtp., imap. |
the mail server's names for mail apps |
fm. |
Files: the server's sites, their kept copies and HQ's backups, read-only unless you allow editing the sites (see Files) |
dbs. |
DB Studio: HQ's own database, read-only (see DB Studio) |
Note: the company's websites for customers and their mail run on another server, installed like a customer's, with a licence key made in HQ. The official server's own mail (for example
support@the domain) is HQ's.
Your company
One Hfog Panel build serves any company. The official install asks for yours on its Company step, before the DNS
records: the Company name (as on invoices), the Domain (HQ, licences, downloads, the API and the help site),
the Website domain when the public website has a domain of its own, and the Tunnel domain, a domain of its
own for Hfog Tunnel's links. The page shows the addresses they make. They are saved in /etc/hostfog/company.json and
written into the website, the help site and the downloads; every server installed from your download server gets the
same company, so it finds your licence server and its updates. Changing them later means installing again.
From a terminal, without questions:
bash install.sh --company "Your Company Ltd" --domain yourdomain.com --tunnel-domain yourlinks.net --email you@yourdomain.com
(--website too, when the website has a domain of its own).
Hfog Local and Hfog Connect reach this server at the company's API address, https://api.<domain>/v1, named in the
signed hfog-company.json next to their downloads, with the tunnel domain for their links. The tunnel domain holds
only Hfog Tunnel's links and its own plain page: its DNS needs just * and the bare name (@), made when Hfog Tunnel
is switched on.
The first HQ login
The official install asks for it on its Admin step, the only login it asks for: an Email and a Password. It becomes HQ's first login, with the Full role.
Nobody can sign in any more? On the server, as root, run hfog-agent create-hq you@example.com: it makes a new
Full login and gives a link to choose its password (it is emailed too, and works once, within 3 days). From that
login, reset the others' two-step sign-in under HQ staff.
Sign in
- Open HQ's address.
- Type your Email and Password, then click Sign in.
- Type the code from your authenticator app and click Verify.
HQ always needs two-step sign-in with an authenticator app. At your first sign-in (or after it was reset) HQ opens the two-step setup screen and nothing else until the app is set up. It can't be switched off on an HQ login.
Once the app is set up you can add a passkey under Password & security and then choose Sign in with a passkey: your fingerprint, face or device PIN, with no password or code to type. A passkey sign-in counts as two-step sign-in. The app stays as the way in when the passkey's device is not at hand.
Forgotten password
- On the sign-in page, click Forgotten your password?
- Type your Email and click Email me a link.
- Type the 6-digit code from the email, or click its link.
- Choose your new password.
The email's link opens HQ, and only HQ: an HQ login's password is reset on HQ only, and HQ resets no other login. Asking on Server Admin's address with the same email resets the Server Admin login, never the HQ one.
Your password and two-step sign-in
Password & security changes your password, your email (which is also the name you sign in with), your passkeys, your authenticator app's recovery codes and which emails you get. It also makes the login's API tokens: see HQ API.
Staff
Where: HQ › Settings › HQ staff
HQ's logins and what each may do. Only a Full login changes them.
| Role | What it may do |
|---|---|
| Full | Everything in HQ, including HQ staff. |
| Support | Answers customers (support tickets, live chat, help articles, data requests, the managed hosting work queue) and sees the rest. |
| View only | Sees everything, changes nothing. |
Every login can always change its own password, two-step sign-in and notifications.
Add an HQ login
- Click Create on the New HQ login card.
- Type their Email and choose the Role.
- Click Make login.
They get an email with a link to choose their own password; the link opens HQ and works once, within 3 days.
The staff list
The list shows every HQ login with its email, whether its authenticator app is set up, its Role and when it Last signed in. Your own login is marked you and can't be changed here.
| Action | What it does |
|---|---|
| Role and Save | Changes the login's role. |
| Envelope icon | Sends a new set-password email. |
| Lock icon | Resets the login's two-step sign-in, after you confirm: they set up their authenticator app again at their next sign-in. |
| Remove | Removes the login after you confirm; it can't sign in or go on working from then on. |
Note: at least one Full login always stays: the last one can't be given another role or removed.
Server
Where: HQ › Server
The official server itself, with the same screens a licensed server without Hfog Panel has:
| Screen | What it is for |
|---|---|
| Status | Server health, with the Services tab to restart one. It lists only what this server runs: the web server, the mail server (Postfix, Dovecot, OpenDKIM and the spam filter), the DNS server, the firewall's ban list, SSH, cron and Hfog Tunnel. There are no checks of websites, PHP, customers' databases or FTP, as the official server hosts none. |
| Updates | System updates and Hfog Panel updates (HQ is updated with Hfog Panel). |
| Logs | What happened on the server itself: updates, firewall, certificates, DNS, backups, site uploads and rollbacks, changes made in Files, and sign-ins. The licence business's own actions are under Team › Activity log. |
| DNS | The DNS zone of the company's own domain, served by this server: add, change and delete records, or reset the zone to its defaults. Its mail records (MX, SPF, DKIM, DMARC) are made and kept by HQ: see Email. |
| Sites | The website, the help site (docs.) and the downloads (cdn.) this server serves: what each one serves now, a new upload, a rollback to an earlier upload, and whether Files may edit them. See Sites and Files. |
The rest of the server's own setup is under HQ › Settings › This server:
| Screen | What it is for |
|---|---|
| Backups | The encrypted backup of HQ's own data, copied off the server. |
| Firewall | Open and close ports, unban addresses, the community blocklist. |
| SSL/TLS | Every certificate on the server and its renewal. |
| Nameservers | The server's two nameservers and its public IP, which the DNS zone is published with (its NS records and the glue the registrar needs). |
| DNS cluster | Secondary nameservers that copy the DNS zone from this server. |
| The mailboxes and forwarders of the domain, and the DNS records the mail needs. See Email. |
Only a Full login changes anything here; Support and View only logins can look. A Full login's menu also has Files and DB Studio, which open at their own addresses already signed in.
Sites
Where: HQ › Server › Sites
Each site shows the upload it serves now (when it was published, its size and, for the downloads, the release
version) and the earlier uploads kept for a rollback. The one-file installer publishes the three sites the same way,
so a re-run of install.sh shows up here as a new upload too.
- Click Upload, choose the site and the archive (a
.zipor.tar.gz, 1 GB at most). - Click Upload in the dialog. The archive is checked first; the site switches to it in one step, so visitors never see half of it.
| Site | What to upload |
|---|---|
| Website | The built website, with index.html at the top (one top folder such as dist/ is fine). Without a downloads folder of its own, the downloads already on the website stay. |
| Documentation | The built help site, with index.html at the top. |
| Downloads | A release folder as publish-release.sh makes it (release-out/), signed with the release key. Files already there and not in the upload stay, except the release zips: the five newest hostfog-<version>.zip are kept, and always the one latest installs. |
An archive is refused when it holds links, absolute paths or .., unpacks to more than 4 GB or 100,000 files, or
lacks what the site needs. The live upload and the 3 before it are kept; Roll back to this serves an
earlier one again. Uploads and rollbacks are in Logs.
Where: HQ › Settings › This server › Email
The mail of the official server's own domain: real mailboxes (for example support@yourdomain.com) that send and
receive, on the server's own mail server. The install makes admin@ the domain and forwards the role addresses
(postmaster@, abuse@ and the others) to it; HQ's own emails (licence emails, password resets, customer care) go
out through the same server.
| Card | What it does |
|---|---|
| How to sign in | Mail's address (mail. the domain), the username (the full address), where the install keeps the first passwords, and the names for mail apps. |
| Mailboxes | Create a mailbox (with a size limit, or send only); per mailbox Mail (opens it without its password), New password (shown once) and Manage (size limit, delete). |
| Forwarders | Add a forwarder or change where one goes; Remove it. Role addresses stay: change where they go instead. |
| DNS records | The records the mail needs, each marked In the zone once the domain's zone on this server has it. |
| Outgoing mail relay | Send through an SMTP relay when the provider blocks port 25. |
Each mailbox signs in to Mail (https://mail.yourdomain.com/) with its own password, and to mail apps with imap.
(IMAP 993, POP3 995) and smtp. (587 or 465) the domain.
While the domain's DNS is on this server, its zone in HQ › Server › DNS gets the MX, SPF, DKIM and DMARC records at the install and keeps them: a record that was deleted comes back at the next update or during the night, and a new DKIM key replaces the old one. An MX, SPF or DMARC record you changed yourself stays as you set it. With the domain's DNS elsewhere, add the records the card lists there.
Files
Where: HQ › Server › Files, or https://fm.yourdomain.com/ (a Full HQ login)
The official server's own folders, to look at and download. They are read-only unless you allow editing the sites:
| Folder | What it is |
|---|---|
Websites (/web) |
The website, docs. and cdn. as they are served now. Can be changed while editing is allowed. |
Kept copies (/kept) |
Every site's uploads kept for a rollback. Always read-only. |
Backups (/backups) |
The encrypted backups of HQ's own data. Always read-only. |
Files reaches nothing else on the server, and it has no share links. Normally a site changes only with a new upload under HQ › Server › Sites, and the backups are made and deleted under HQ › Settings › This server › Backups.
Allow editing website files
Where: HQ › Server › Sites › Editing in Files

The switch is off by default, and only a Full login can turn it on or off. While it is on, Files can edit, upload, rename, move, copy and delete files, and make folders, in the website, the help site and the downloads under Websites. Each change stays in its own site: a file can't be moved or copied from Kept copies or between two sites. Zipping, unpacking and permissions are not offered.
- Kept copies and Backups stay read-only.
- The server checks every change, whatever the browser sends. A path that leaves the site, through
..or a link, is refused. - A changed file is replaced, never written over in place. So the kept copies that shared it stay as they were, and a rollback still serves the upload as it was published.
- The files stay readable by the web server. Turning the switch off gives them back to
root, with folders755and files644, as an upload leaves them. - Every change is in HQ › Server › Logs with the login, the action and the path. So is every use of the switch
(
site.files_edit).
Warning: the next install or update writes the website and the help site again. A change made in Files is lost unless it is also made in their source. Files and the switch show this warning while editing is on.
While the switch is on, a new upload or a rollback can be changed in Files too. The copy that was live before is read-only again.
From HQ's menu Files opens signed in, with a link that works once and only for two minutes. At its own address, sign in with your HQ email, password and authenticator code. Support and View only logins can't sign in.
DB Studio
Where: HQ › Server › DB Studio, or https://dbs.yourdomain.com/ (a Full HQ login)
HQ's own database (SQLite), read-only: browse tables and rows, see a table's structure, run SELECT queries in the
SQL box and export a table or the whole database. Nothing in it can be changed: there is no row editing and no
import, and the server refuses any statement that would write or change the schema.
Secrets show as hidden, in the rows and in the SQL box alike: the licence signing key and every other secret setting
(keys, tokens, passwords, webhook secrets), password hashes, authenticator secrets, recovery codes and the tokens of
sign-in and other links. A query that reads them from the database file itself (main.settings, main.users) is
refused.
From HQ's menu DB Studio opens signed in, with a link that works once and only for two minutes. At its own address, sign in with your HQ email, password and authenticator code. Support and View only logins can't sign in.
Warning: the database still holds everything else HQ keeps: customers, licences, payments. Only give the Full role to people who may see all of it.
Tunnels
Where: HQ › Services › Tunnels
Hfog Tunnel's links (name. the tunnel domain) and the settings of the free links of the Hfog Local desktop app. See
Hfog Tunnel and its limits.
Block a tunnel name
A link that is used for phishing, malware or anything else against the terms of use is blocked by its name:
- Click Block on its row, or Block on the Block a tunnel name card and type its name or paste its address
(for example
https://shop.hfog.run/login). - Type the Reason, then click Block.
The link stops at once: its key no longer opens it, and its address shows a plain This link is blocked page with the abuse contact, whatever path is asked. Nobody can make a link with a blocked name, and a link that has it keeps its row, marked Blocked. Blocked names lists each one with its reason, who blocked it and since when; Unblock makes the name work again. Blocks and unblocks are in Team › Activity log.
Only a Full login blocks and unblocks; Support and View only logins see the list.
Abuse contact
The tunnel domain's own page (its bare name and www.) and the blocked page show abuse@ the server's domain as
plain text, with no link. The install forwards abuse@ to admin@ (see Email): make it a mailbox of its own
under HQ › Settings › This server › Email if someone else answers abuse reports.
Add the tunnel domain to the Public Suffix List
The Public Suffix List tells browsers that every name under the tunnel domain belongs to someone else: a link can't set cookies for the whole tunnel domain or for another link. You send the request yourself, as a pull request to the list on GitHub. Read the list's guidelines first.
Important: the list takes a domain only when it has at least two years of registration left (keep more than one year after that), and it expects thousands of real users of the names. A request for a service that is new, small or a test is turned down.
-
Renew the tunnel domain so it has more than two years left.
-
Check that the tunnel domain's page shows the abuse contact (above).
-
Fork
https://github.com/publicsuffix/listand editpublic_suffix_list.dat. In the PRIVATE section (between===BEGIN PRIVATE DOMAINS===and===END PRIVATE DOMAINS===), add the block below in alphabetical order of the company name, never at the end of the file:text// <company name> : https://<company website>/ // Submitted by <company name> <<role address, for example psl@ your domain>> <tunnel domain>The entry is the tunnel domain itself (
<tunnel domain>, not*.<tunnel domain>): each link's name is then a site of its own. Use a role address you read, not a person's: the list's volunteers write to it and expect an answer within 30 days. -
Open the pull request and fill in the template (the text below). Note its number.
-
Add a TXT record in the tunnel domain's DNS zone, with the pull request's address as its value, and leave it there for as long as the domain is on the list:
Type Name Value TXT _pslhttps://github.com/publicsuffix/list/pull/<number> -
Check it, and paste the answer into the pull request's DNS Verification part:
dig +short TXT _psl.<tunnel domain>
The text for the template's parts:
| Part | Text |
|---|---|
| Description of Organization | <company name> makes Hfog Panel, Linux server software for web hosting, and Hfog Local, a free desktop app for building websites on your own computer. Hfog Local shares a site running on someone's computer at a public link, <name>.<tunnel domain>, through Hfog Tunnel, a service that <company name> runs. I am <your name and role> and I submit this for <company name>, which owns <tunnel domain>. |
| Organization Website | https://<company website>/ |
| Reason for PSL Inclusion | Every name under <tunnel domain> is a different person's website: anyone using Hfog Local can share a local site at <name>.<tunnel domain>. Listing <tunnel domain> keeps those sites apart in browsers: one cannot set or read cookies for <tunnel domain> or for another person's site, and each is treated as a site of its own. This is not to work around any third-party limit. <tunnel domain> is registered until <date>, more than two years from now, and we will keep more than one year on its registration. Abuse reports go to <abuse contact>, shown on https://<tunnel domain>/, and a blocked name shows a notice page. |
| Number of thousands of users | <count> (current / estimate) |
| Abuse contact URL | https://<tunnel domain>/ |
| DNS Verification | the dig command and its answer from step 6 |
Tick the template's checkboxes only for what is true; leave the third-party limits list empty.
User analytics
Where: HQ › Overview › User analytics tab (administrators)

Who uses the website and the licensed panels, read only, for the last 7, 30 or 90 days. It has two tabs:
- Website customers: who is online now and who was seen in the last 24 hours (page, country, device, last sign-in), visitors, page views, sign-ins and sign-ups, the countries, devices, browsers and systems, the most visited pages, the visitors and sign-ins per day, and From visit to paying: how many people reached each step, from the first visit to paying.
- Licensed servers: the paid edition's daily usage summaries, numbers only (no names or addresses leave a customer's server): users online and active, sign-ins, users by country, the most used screens, the busiest servers and the totals per day.
Announcements to licence holders
Announcements emails licence holders once per address: everyone with a working licence, paying licences, trials, partners, partners on LTS or the website's accounts. Choose its Kind first:
- News goes only to licence holders who agreed to news and offers: with the unticked box at a licence checkout
(kept once the first payment is in) or on Notifications in their account at
/account, where they can stop it again. Each change is kept with its time, and the email ends with an unsubscribe link that needs no account. - Service notice goes to everyone in the audience: security notices, planned work, licence matters.
The audience shows how many addresses the kind reaches. Send yourself a test first; Sent lists each announcement with its kind. The emails go out in the background, a few hundred every five minutes. The same announcement can't be sent twice within a day.
Releases
Releases shows what licensed servers install and update to, per release channel: Stable, LTS and Early access. Each server picks its channel under Server Admin › Server › Updates; a partner set to LTS under Partners keeps its licences on LTS. A channel with no release uploaded gives its servers Stable. New releases are uploaded on this screen (Upload a release), each to one channel.
A new Stable release is rolled out in stages. It goes to 10% of the servers on Stable first; the others keep the release before it. Which servers are in a share is worked out from the licence key, so it never changes from one check to the next.
- Watch Versions in use: how many servers run each version, how many updates to it worked and how many failed (the servers report this with their licence check-in).
- Choose a larger share and click Roll out further (25%, 50%, then 100%: every server on Stable).
- Click Pause to hold it back from every server that has not updated yet, and Resume to go on.
A share only grows: a server that updated stays on the new version. To take a bad release back, use Roll back to this on the release before it; that one is given to every server again, and its roll-out is complete.
VAT on licences
Licences are sold without VAT until your company is registered for VAT. Then, in Payment settings, use the Charge VAT on licences card:
- Tick Charge VAT on licences.
- Choose where Your business is in and type Your VAT number (printed on invoices).
- Tick Prices include VAT if your plan prices already include it; otherwise VAT is added at checkout.
- Click Save.
The licence shop and the account's Buy a licence then ask the buyer's country and, for a business, its VAT number. A buyer in your own country pays your country's rate, a business elsewhere in the EU or the UK with a valid VAT number pays none (reverse charge), and anyone else pays none (outside the scope). The rate goes onto the card payment, or into the PayPal plan's price.