Skip to content

    11. Advanced Networking and Maintenance

    This chapter is for the server’s owner and admins. It covers the server’s network settings and day-to-day maintenance. Click the gear icon on the right side of the tab bar (tooltip: User Settings) to open the settings panel. The Network group has the TURN Server tab, where you set up the built-in TURN relay. The first tab of the Server Settings group, Dashboard, shows statistics on the server’s scale. Further down the Dashboard tab, from top to bottom, are the Backup, Orphan Files, Server Update, and Server Actions sections, which this chapter also covers. What this chapter describes is exactly the same for the owner and for admins.

    Click the gear icon on the right side of the tab bar (tooltip: User Settings) to open the settings panel, then click the TURN Server tab in the Network group. The title at the top of the tab is also TURN Server.

    From top to bottom, the tab contains: the environment variable override notice (shown only when the server points to an external TURN), the enable switch and status, the TURN port, the address mode, running a diagnostic, and the firewall note.

    If this server already points to an external TURN through an environment variable, a notice appears at the very top of the tab. It reads exactly: “TURN is configured via environment variables (TURN_URL), so the built-in TURN server is disabled. Remove TURN_URL to use the built-in one.” While this notice is shown, the enable switch below can’t be clicked. To use the built-in TURN instead, you first have to remove the TURN_URL environment variable. While TURN_URL is set, the built-in TURN is not started, and saving TURN settings doesn’t start it either.

    Enable Built-in TURN Server (Switch + Status)

    Section titled “Enable Built-in TURN Server (Switch + Status)”

    Enable Built-in TURN Server is the first section of the tab, with a one-line description beside it: “Run a TURN relay server to help users behind strict NATs (VPN, corporate networks) connect to voice channels.”

    This section has a switch. Clicking it changes the setting and applies it immediately; there’s no need to save. When the environment variable override described above is in effect, this switch can’t be clicked; it also can’t be clicked until the status has been read for the first time.

    If the request to turn TURN on or off fails, a line of red text stays below the switch until your next attempt: “The request to turn TURN on failed: {error}” or “The request to turn TURN off failed: {error}”. If no answer arrives, it reads “No answer arrived for the request to turn TURN on ({error}). The server may still have applied it; go by the status below.” or “No answer arrived for the request to turn TURN off ({error}). The server may still have applied it; go by the status below.” {error} is the error detail; a message from the server is shown in its original English.

    Below the switch is the status line: Status, followed by a dot and the state. There are four states:

    • The server is running TURN: a green light and Running.
    • TURN is stopped: a gray light and Stopped.
    • TURN is starting: a gray light and Starting…. The server is resolving the DDNS hostname, for up to about 10 seconds; afterwards the state becomes Running or the Retrying state below.
    • The server is retrying automatically in the background: a warning color and Retrying, with a line of explanation below. When the DDNS hostname can’t be resolved for the moment, it reads “The DDNS hostname cannot be resolved right now. The server keeps retrying and will try to start TURN on its next attempt once the name resolves.” When TURN could not restart on the new address after a DDNS address change, it reads “TURN could not restart on the new DDNS address. The server keeps retrying.”

    When the status is Stopped and the last start attempt failed, one more line of explanation appears below it, depending on where the switch is. With the switch on: “The last start attempt failed. The server will not retry on its own. Saving a TURN setting, or turning TURN off and on again, starts a new attempt.” With the switch off: “The last attempt to turn TURN on failed, and the server will not retry on its own. Turn it on again to retry.” When the state is neither Running nor Starting… and there is a failure reason, one more line reads “Last error: {error}”, where {error} is again the server’s original message.

    Other states: before the status has been read, it shows “Checking…”; if it can’t be read, it shows “Unknown” and “The TURN status cannot be read right now. This page will try again shortly.”; if it was read before but this refresh failed, “The status could not be refreshed. This is what was last read.” appears below the status.

    The panel re-reads the status by itself, so you don’t have to reopen the tab. It reads only while the TURN tab is open and the browser tab is in the foreground; it stops when the page goes to the background or you leave the TURN tab, and reads once when you come back:

    • Normally it reads every 45 seconds, so if another admin flips the switch or a DDNS address changes, this page updates on its own after a while.
    • While the state is Starting… or Retrying, after the last read failed, or after a failed switch when the real position of the switch isn’t confirmed yet, it reads every 7 seconds instead.
    • After you press Save to change a TURN setting, the panel also re-reads a few more times shortly afterward.

    After a request to turn TURN on or off fails (or gets no answer), the switch is locked until the real state on the server has been read successfully; if reading keeps failing, the switch stays locked. While the browser tab is in the foreground it retries every 7 seconds, and it pauses while the tab is in the background and resumes when you come back.

    The built-in TURN relays only to the UDP ports that this server’s own voice connections are using, and refuses every other address and port. This check works on Linux, macOS, and Windows; on other platforms (for example FreeBSD and OpenBSD) the built-in TURN does not relay voice traffic, so use an external TURN instead (the TURN_URL environment variable, see above). Two cases need care:

    • On macOS and Windows, for up to about 1 second after a local address is removed (for example a DHCP lease change or a VPN disconnect), relaying can still reach the host that took over that address, on the port the voice connections are using; Linux has no such gap.
    • If this server shares the host network with Docker (the server runs directly on the host, or a container uses network_mode: host), Docker’s userland-proxy is turned off, and a container publishes a UDP port in the ephemeral port range, local traffic to that port is forwarded by Docker to that container. On such a host, before you enable the built-in TURN, avoid publishing UDP ports in the ephemeral range, or use an external TURN. The built-in TURN is not affected when the server itself runs on an isolated bridge network.

    TURN Port sets the port that TURN uses externally, with a one-line description beside it: “UDP and TCP port for the TURN server. Must be open in your firewall.”

    This is a number box that shows 3478 by default. After you change it, click Save next to it to save the new port. If any of the three Save buttons on this tab (port, public IP, DDNS hostname) fails, the button shakes and a line of red text stays below that row until your next attempt: “The save request failed: {error}”.

    Address Mode tells TURN how to get this server’s public address. Below it are two side-by-side buttons, and you choose one: Static IP or Dynamic DNS (DDNS). Whichever you choose, the matching settings area appears below.

    When you switch to Static IP, Public IP Address appears below, with a one-line description: “The public IP address of this server.” This is a text box, and its hint text is 203.0.113.45. Next to it is the Auto-detect button. Clicking it tries to fill in the detected public IP, and the button shows that it’s busy while detecting. Once you’ve confirmed the address, click Save to save it.

    When you switch to Dynamic DNS (DDNS), DDNS Hostname appears below instead, with a one-line description: “Your DDNS hostname (e.g. myserver.duckdns.org). The server will periodically resolve it.” This is a text box, and its hint text is myserver.duckdns.org. After you fill it in, click Save to save the hostname. The server re-resolves the hostname about once a minute; if the address changes, it restarts TURN on the new address. If the hostname can’t be resolved for the moment at startup, when you save the settings, or when you turn the switch on, the server doesn’t give up and doesn’t show an error window: it goes to Retrying, keeps retrying in the background, and tries to start TURN once the name resolves. When both the IP address and the hostname are cleared, TURN stops.

    Once the address is set, you can click Run Diagnostic to run an internal self-test. You can click this button only while TURN is actually running (the status is Running); when it is stopped or retrying, it can’t be clicked.

    If the test succeeds, it shows “TURN server is running internally.” If it fails, it shows “TURN diagnostic failed”, followed by details of the failure.

    Below the button is an important note. It reads exactly: “This is an internal self-test only. It does NOT verify external connectivity. To confirm TURN works for real users, test with a VPN or from an external network.” In other words, a successful diagnostic only means that TURN itself runs on the server’s end. It doesn’t mean that outside users can definitely connect. To really confirm it, test a voice connection once from an external network or over a VPN.

    At the very bottom of the tab is a note box that reminds you to open the ports. Its text includes the port you currently have set (default 3478): “Make sure UDP and TCP port 3478 are open in your firewall and forwarded to this server if behind a router (TCP is a fallback for clients on UDP-blocked networks).”

    Click the gear icon on the right side of the tab bar (tooltip: User Settings) to open the settings panel, then click Dashboard, the first tab in the Server Settings group. The title at the top of the tab is Server Dashboard.

    When you open this tab, the statistics load once without you having to do anything. On the right is a Refresh button. To update the numbers, click it to fetch them again.

    The top of the tab is a grid of statistics cards. Each card shows one number, and the values come from the server. During the first load, the grid isn’t shown yet, and a spinning loading indicator appears in the center of the screen. The grid appears once loading finishes. After loading, if a card’s value is missing, that card shows —.

    If loading fails (including when Refresh fails), red text takes the place of the grid — “Couldn’t load the server statistics. Check your connection and the server, then press Retry.” — together with a Retry button, instead of spinning forever. When a reason is available (the server’s message or the connection error), it is added in parentheses after that sentence. When Retry succeeds, the grid comes back.

    The statistics cards you’ll mainly use are:

    • Total Users — the total number of users who have registered on this server
    • Online Users — the number of users who are currently online
    • Banned Users — the number of users who have been banned
    • Total Messages — the total number of messages across the server
    • Today Messages — the number of messages so far today
    • Total Channels — the number of channels across the server
    • Database Size — the space the database currently takes up
    • Uploads Size — the total space taken up by files that members have uploaded
    • IO Apps Size — the total space taken up by IO Apps
    • Pages size — the total space taken up by web page content
    • Memory Usage — the server’s current memory usage

    The grid also has a Goroutines card, which shows the number of the server’s internal threads. It’s a fairly technical metric, and this manual doesn’t go into it.

    The disk and size figures among them (Database Size, Uploads Size, IO Apps Size, Pages size, and Memory Usage) are automatically converted to readable units and shown as B, KB, MB, GB, or TB, depending on their magnitude. These cards show the numbers from the moment you refreshed or first opened the tab. To see the current state, click Refresh again.

    Below the statistics grid is a Forum Statistics section with three cards side by side, loaded together with the grid:

    • Total Forum Messages — the total number of forum messages across the server (posts in deleted channels are not counted, including ones left from before updating).
    • Total Forum Files — the total number of files uploaded in forums across the server.
    • Total Forum File Size — the combined size of all forum files, also converted automatically to B, KB, MB, GB, or TB.

    During the first load, this section shows a spinning loading indicator; if loading fails, it shows the same error message and Retry button.

    Scroll down the Dashboard tab: the first section below the statistics cards is Backup. You use it to create and download database backups. It has a one-line description beside it: “Create and download a database backup.”

    Under the description, a line in a warning color reads: “A backup contains this server’s secrets (login signing key, AI API keys, mail password, TURN secret, TLS private keys, user password hashes). Store it securely and do not share it.” A backup is not encrypted: when you download it to a cloud drive or a personal device, keep it somewhere only you can reach, and don’t pass it on.

    Click Create Backup to create a backup. The button shows that it’s busy while the backup is being created. When it’s done, “Backup created successfully!” briefly appears next to it. A backup is a zip file with the contents of the data directory (except older backup files and the current log); the database is always placed at the top of the zip as hako.db, wherever the server’s database file is stored and whatever it is called.

    Once the server has backups, a backup list area appears below:

    • A drop-down menu lists all existing backups. Each option shows “backup file name (file size)”, with the size automatically converted to readable units.
    • Download Backup downloads the currently selected backup. It can’t be clicked until you select a backup.
    • Delete (red) removes the currently selected backup. It can’t be clicked until you select a backup, and it shows that it’s busy while deleting.

    After you select a backup, two lines of details appear below: Size is the backup’s file size (in readable units), and Created at is the date and time it was created.

    There is no button for restoring a backup; do it by hand: stop the server, delete the existing database file and the -wal, -shm, and -journal files beside it (if they are left in place, old data quietly comes back), then unzip the backup into the data directory. On a server whose database file lives in a custom location, put the backup’s hako.db back at that location yourself. For the full steps and the files to bring along when you move to another machine, see Quick Self-Host Guide §6.5.

    Scroll further down the Dashboard tab: the section after Backup is Orphan Files. You use it to find files that were uploaded but are no longer referenced anywhere. Its one-line description reads, word for word: “Scan for uploaded files that nothing references — no message, note, whiteboard, page, user, server setting, or other server asset (stickers, sounds, badges, themes). Recently uploaded files are skipped: they may still be on their way into a message.”

    Click Scan to start scanning. The button shows that it’s busy while scanning. When the scan finishes, what appears depends on the result:

    • If orphan files are found, a red Delete All ({count}) button appears. The number in parentheses is how many were found.
    • If no orphan files are found, a green “No orphan files found.” appears.

    When files are found, a list appears below. Its header reads, word for word, “{count} orphan file(s) found”, where {count} is the number of files, followed by the total size of these files (in readable units). Each row of the list shows the file name on the left and that file’s size on the right. Once you’ve checked the list, you can click Delete All ({count}) to clear them all at once and free up disk space.

    Why the Scan Finds Fewer Files Than Expected

    Section titled “Why the Scan Finds Fewer Files Than Expected”

    Files that were recently uploaded and haven’t been sent yet aren’t referenced by anything, but they aren’t orphans. So the scan deliberately skips files that are too new: ordinary files aren’t listed for one hour after upload. Files that the server knows were “uploaded but not yet picked up by any message” aren’t listed for 24 hours, and their thumbnails are skipped along with them.

    This is usually why “the scan found fewer files than I expected”. It doesn’t mean the scan is broken.

    When a theme replaces or removes its background image, or the whole theme is deleted, the server deletes the image as long as nothing else uses it; for a personal theme, however, only an image the theme’s author uploaded is deleted. Changes to a personal theme never delete a background copied from a server theme, an image someone else uploaded, or an older image whose uploader the server can’t confirm. Once no theme uses these images any more, they show up in the Orphan Files scan results, and you decide whether to delete them.

    So it is normal for theme background images to appear in the scan results; on a server upgraded from an older version, a few more theme background images may show up for this reason.

    To decide what counts as an orphan, the scan first has to read every source of references that are “still in use”. If any one of them can’t be read, the whole scan stops and lists no files at all. A red banner shows which read failed and the underlying reason, word for word: “Scan stopped: could not read “{source}” ({reason}). Nothing is listed until it can be read, so that files still in use are not mistaken for orphans.”

    This is by design: “couldn’t read it” and “not referenced” must not give the same answer. Otherwise, a whole category of assets that are still in use would be listed as deletable, and the delete step doesn’t check again. When you see this banner, don’t rush to retry the delete. First deal with the source that failed to read.

    After you click Delete All ({count}), the server deletes the files one by one and reports what it actually did:

    • “Deleted {count} file(s), freed {size}.” — the number of files actually deleted and the space freed.
    • “{count} file(s) kept because they are too recent — they may still be on their way into a message.” — appears only when files were actually kept.
    • “{count} file name(s) failed the safety check and were skipped.” — likewise appears only when this actually happened.

    After the delete finishes, the list is checked with the server once more instead of being cleared outright (files that were kept are still there, and clearing the list would hide them). While the delete is in progress, the Scan button is disabled so that the two don’t interfere with each other.

    If something goes wrong partway through the delete, the banner says “The delete did not complete”, not “no files changed”. The server deletes files one at a time and has no way to roll back the whole batch, so if the connection drops, the client can’t know how many files were actually deleted. After an error, the list is also checked with the server once more. When this check succeeds, the banner adds “The file list has been re-checked against the server.”, and the list below shows the actual state. If the banner doesn’t add this sentence, scan again to see the actual state.

    Scroll further down the Dashboard tab: the section after Orphan Files is Server Update, with a download icon to the left of its title. You use it to see the current version, decide whether to receive pre-releases, and download and apply a new version when one is available.

    The top row is Current Version, with this server’s current version string on the right. Before it loads, it shows —.

    Below that is a card, Receive Pre-release Updates, with a one-line description beside it: “When enabled, update checks will also include pre-release versions. Pre-releases may contain incomplete or unstable features.”

    It has a switch that changes as soon as you click it. When you turn it on, a yellow reminder appears below it. It reads exactly: “⚠ Pre-release versions may contain unfinished features or known issues. Recommended for testing only.”

    What this switch actually decides is “which version an update check offers”:

    • On — picks the one with the highest version number from all eligible versions, pre-releases included.
    • Off — looks only at stable releases and offers the newest of them.

    The switch is off by default. Each time you change it, the update area goes back to its not-yet-checked state. Click Check for Update again to check with the new setting.

    Note that whether there’s “a new version” depends on whether the executable itself has changed, not on which version number is higher. This has three practical results:

    • When the same version number has been released again (the version number stays the same, but the executable is rebuilt), an update still appears here — it really is a different executable.
    • If you’re running a pre-release with the switch off, Check for Update offers the latest stable release, even if its version number is lower than the current one; a stable release with a lower version number can be installed only if it is on the same version line as the current version (for example, both B2.6.x). However, on a server that runs B2.6.66 or later (if you are on B2.6.65, first switch by hand to B2.6.66 or later, as described in “Verifying a Download by Hand” below), switching back to stable also needs that stable release to be signed: you can switch back from the panel only after a signed stable release is published. The current stable release, B2.6.62, has no signature file, so the panel refuses to download it and shows the first message listed under “Checking for and Applying Updates” below (“Couldn’t download the update: its signature file couldn’t be fetched…”), with no option to skip verification. Once a signed stable release is out, turn off the switch, click Check for Update, and then download and apply it with the steps below.
    • Conversely, if you’re running a stable release and turn the switch on, Check for Update offers an eligible pre-release whenever there is one newer than the latest stable release.

    If this server runs a pre-release that you downloaded yourself (you set it up with a pre-release from the start, or switched to one manually later; you can download one from the Version menu on the website’s download page, see Quick Self-Host Guide §4.2), remember to turn this switch on as well. That way, Check for Update keeps offering new pre-releases.

    After you click Check for Update, the update area shows different content depending on the result. While it checks, it first shows Checking….

    If the server is already up to date, it shows Up to date with a check mark, followed by Last checked and the time.

    If this server runs in a container, the update area instead shows Managed by Docker with a whale icon, along with an explanation: “This server runs in a container, so in-app self-update is disabled. Update by pulling a new image and recreating the container — your data persists in the volume.” Below that is a command that you can select in full and copy:

    docker compose pull && docker compose up -d

    Update a server that runs in a container with this command: pull the new version and recreate the container. Your existing data is kept and isn’t lost.

    If an update is available, a “New version available!” block with an up arrow appears. It lists Latest Version, File Size, and Published, along with release notes that you can expand to read. To update, click Download Update. As it runs, you see the progress and the time remaining for stages such as Downloading and Verifying.

    When you download an update, the server first checks the release’s signature; only if the signature verifies does it download, and then it automatically compares the downloaded file against the signature-protected hash list (SHA256). If there is a problem with the signature, the whole update is refused: nothing is downloaded or installed, the server stays as it was, the update area explains the reason in red text, and there is no option to skip verification. The explanations you may see (verbatim):

    • “Couldn’t download the update: its signature file couldn’t be fetched, so nothing was downloaded or installed. Try again later. If it keeps happening, download the release from the releases page and check it by hand (see the update documentation).”
    • “Couldn’t install the update: this release’s signature didn’t pass the check, so nothing was downloaded or installed and the server is unchanged. Don’t install it from anywhere you don’t trust. Check the releases page, or ask whoever maintains the server, and verify the files as the update documentation describes.”
    • “Couldn’t install the update: the signed release has no server file for this platform, so nothing was downloaded or installed. Check the releases page for a build that matches this machine.”
    • “Couldn’t install the update: that release is older than the version you’re running, so nothing was downloaded or installed.”

    For the first three, try again later; if it keeps happening, verify and replace the executable yourself with “Verifying a Download by Hand” later in §11.5.

    If the signature is fine but the downloaded file doesn’t match the hash in the list (the file is damaged or has been tampered with), “SHA256 automatic verification failed” appears with a warning sign, and the hint reads: “The downloaded file does not match the checksum in the signed release list, so it may be damaged or tampered with. Download it again first. Only if it keeps failing, and the hashes below match what the GitHub Release page shows, you may choose to skip verification and apply.” Below the hint are Reason, Expected hash (from SHA256SUMS.txt), and Actual hash (downloaded file). Download again first; if it keeps failing, you can click the Open GitHub Release link and check the hashes manually on that page. (If you reopen the panel and recover from a previously downloaded update that failed verification, the link opens the GitHub Releases list page instead, and you need to find the matching version there.) Only if they match, click the red I verified manually, skip and apply to continue. Or click Discard staged update or Cancel to abandon this update.

    When the download and verification are complete, it shows Download complete, verified with a check mark, and a yellow Apply Update button appears next to it. Clicking it opens a confirmation step, with a warning in a yellow box that reads exactly: “This will disconnect all users and restart the server. Are you sure?” The confirm button is the red Yes, Apply Update, and there is also Cancel. While the update is being applied, it shows Updating server…. If the server refuses to apply the update (for a wrong systemd configuration, see the next paragraph), the panel instead shows a red “Failed to apply the update: {reason}” ({reason} is the reason the server reports; when there is no specific reason it shows “Failed to apply the update.”), rather than staying on “Updating server…”.

    Apply updates during off-peak hours, when fewer users are online. Before you apply one, always go to the Backup section above and click Create Backup (§11.3).

    On Linux, after you click Yes, Apply Update, the server switches to the new version and restarts, and all users’ connections are interrupted in the meantime. For a server that runs as a systemd service, systemd handles the restart, and the service configuration must use Restart=always (for the service configuration, see Quick Self-Host Guide §4.5; if the server doesn’t come back after applying, see §12.2). If the service configuration is wrong, the panel refuses to apply the update and explains: when the unit’s Restart is not always, clicking Yes, Apply Update does not apply the update and the server keeps running the current version as usual. The panel shows “Update not applied: the unit needs Restart=always”, with an explanation that names the systemd unit the server runs as and its current Restart setting and asks you to change it to always, and it lists the command to reload the configuration (sudo systemctl daemon-reload; for a user unit, systemctl --user daemon-reload). Fix it, then apply the update again. Once the new version starts, every member receives a System Update notification: “Updated from {from} to {to}”.

    Every published release comes with SHA256SUMS.txt and its signature file SHA256SUMS.txt.minisig (signed with minisign). When you need to verify a downloaded file yourself (for example, you replace the executable directly without using the panel, or you want to be sure about the first update to a version that checks signatures), do this:

    1. From the releases page, download SHA256SUMS.txt, SHA256SUMS.txt.minisig, and the server file for your platform into the same folder.
    2. Run minisign -Vm SHA256SUMS.txt -P RWRPLLtYTs8GOJCe29x96BK7SSlIvh1fmUx37XbkY79H6XEFfUa80IAB (the key ID of this public key is 3806CF4E58BB2C4F). It must print Trusted comment: hakospace tag= followed by the tag of the release you downloaded; if it doesn’t, or the tag is different, don’t use these files.
    3. Compare the file’s hash; the comparison is not case-sensitive. On Linux, run sha256sum -c --ignore-missing SHA256SUMS.txt and accept the file only if you see a <file name>: OK line; if you don’t see <file name>: OK, nothing was verified (when the file name doesn’t match the list, newer versions print no file was verified, and older versions may say nothing). On macOS you can run shasum -a 256 <file name> and compare the result yourself with the line for the same file name in SHA256SUMS.txt. On Windows, run (Get-FileHash -Algorithm SHA256 <file name>).Hash.ToLower() in PowerShell (it prints uppercase and the list is lowercase, hence the conversion) and compare it with the line for the same file name in SHA256SUMS.txt; accept the file only if they are identical.

    The server checks signatures by itself only from B2.6.65 on, so on a server running B2.6.64 or older, every update made from the panel was not signature-checked; if you want to be sure, verify the download yourself with the steps above. The public key above can verify only releases published from B2.6.66 on. B2.6.65 was signed with a different, retired key, which this key cannot verify; and a server running the B2.6.65 executable trusts only that old key (and keeps trusting it), so it cannot verify B2.6.66 or later. When such a server updates to B2.6.66, Download Update shows the message that the signature didn’t pass the check, which is expected this one time: download the B2.6.66 server file by hand as soon as you can, verify it with the steps above, replace the executable, and restart the server. After that, the server checks later updates against the new key.

    Servers that run in Docker are not covered by this signature; keep updating them with the Managed by Docker command above.

    For a server set up as a single executable, when you click Check for Update and Download Update, the server connects to HakoSpace’s software distribution source, dl.hakospace.com, to look up and download the new version. When that source is unavailable, it automatically connects to GitHub instead. The server makes outbound connections for updates only when you click these two buttons. If a firewall restricts the server’s outbound connections, see §12.2 for the domains to allow.

    At the very bottom of the Dashboard tab is Server Actions, with a one-line description beside it: “Execute server management operations. The server will be temporarily unavailable during restart.”

    The action currently offered is a restart. Its button is the yellow Restart, and it uses a two-step confirmation to prevent accidental clicks:

    • The first click on Restart opens a confirmation step, and “Are you sure?” appears next to it.
    • The confirmation step shows a red Confirm button and a Cancel button. The restart runs only when you click Confirm. Click Cancel to back out. The button shows that it’s busy while the restart runs.

    On Linux, after you click Confirm, the server restarts and is temporarily unavailable in the meantime, so do this when fewer users are online. For a server that runs as a systemd service, systemd handles the restart, and the service configuration must use Restart=always (see Quick Self-Host Guide §4.5).

    If the server runs in a container, this area has no Restart button. It shows Managed by Docker with a whale icon instead, with the explanation: “This server runs in a container, so it cannot restart itself from here. Restart it from the host with the command below.” Below it is a command you can select in full and copy, docker compose restart; run it on the host.

    If the restart request fails on a regular deployment after you click Confirm, the failure reason appears in red below this area; when the server doesn’t report a specific reason, it shows “Restart failed. Check the server log, then try again.”

    The URLs of images, avatars, attachments, and wallpapers that members upload open without signing in. Once one network (an IPv4 address, or one IPv6 /64 range) has asked the server for 120 files that don’t exist within a minute, every file request from that network is refused until that minute ends: members see images, avatars, attachments, and wallpapers fail to load, and they usually load again on their own once the limit ends (see User Guide §2.4). The network is not blocked and does not show up in the IP ban list in §9.3.

    If a CDN sits in front of the server (including a Cloudflare proxy or tunnel):

    • After you upgrade from an older version, purge the CDN cache for /uploads/* once. Older versions allowed a CDN to cache the responses, so without a purge old responses can stay cached for up to 10 more minutes.
    • Don’t set a CDN rule that overrides the server’s cache instructions (for example Cloudflare’s Cache Everything together with an Edge TTL that ignores the origin). That would make the limit ineffective.
    • The server now doesn’t let shared caches such as a CDN store these files; only members’ browsers cache them, so more traffic reaches the server.

    If a reverse proxy runs on another host (for example on Docker’s bridge network or a separate load balancer), list its address in the TRUSTED_PROXIES environment variable. When it isn’t set, all members are treated as one network coming from the proxy, so one person tripping the limit makes images, avatars, attachments, and wallpapers fail to load for the whole server for up to about 1 minute.