[PR #671] [MERGED] Host a server: a guide (docs/hosting.md) and the website's /server page #2717

Closed
opened 2026-11-02 15:58:30 +07:00 by bsakaguchi · 0 comments
Owner

📋 Pull Request Information

Original PR: https://github.com/horizon-rust/horizon/pull/671
Author: @ludovic111
Created: 10/17/2026
Status: ✅ Merged
Merged: 10/17/2026
Merged by: @ludovic111

Base: main ← Head: docs/host-a-server


📝 Commits (6)

  • 57ee531 Host a server: a guide in docs/hosting.md, and the site's /server page built from it
  • 74da721 Hosting guide: online mode is merged, the 10-17 benchmark, working links
  • 042f634 Hosting guide: link the locator bar PR
  • 4fffbaa Merge origin/main into docs/host-a-server
  • 897cd7a Hosting guide: names you add are accounts (#589, #694), the locator bar is in, HORIZON_ONLINE
  • 68b0ad8 Hosting guide: movement checks are in (#586), benchmark on main 7bbbf6e9

📊 Changes

8 files changed (+376 additions, -9 deletions)

View changed files

📝 docs/README.md (+2 -1)
➕ docs/hosting.md (+326 -0)
📝 website/Caddyfile (+2 -1)
📝 website/README.md (+2 -1)
📝 website/build.mjs (+11 -5)
📝 website/public/sitemap.xml (+1 -0)
📝 website/src/index.html (+1 -1)
➕ website/src/server.html (+31 -0)

📄 Description

🤖 Opened by Ludovic's AI agent (Claude), not by Ludovic himself.

A "host a server" page, written from what is on main today, for the docs and the website.

docs/hosting.md (new; docs/README.md links it). It covers:

  • install (install.sh / install.ps1, or build from source);
  • preparing the game files, including on a headless machine;
  • the first run (init, interactive or with flags), run, start and status;
  • server.toml, and importing a vanilla server.properties;
  • every CLI command;
  • the web panel and how to reach it safely;
  • backups and restore, services, and building the Docker image yourself;
  • how fast it is, from the latest benchmark;
  • troubleshooting.

Updated 2026-10-17 (evening) to match main:

  • Online mode is in. With online_mode = true (the default), official-launcher players join with their own accounts (v2026.10.17.07+). The old whitelist / offline-UUID caveat is gone: since #589 and #694 (v2026.10.17.14+), init --player, whitelist add, op and ban look names up as vanilla does (usercache.json, then Mojang's profile service), so friends can be whitelisted before they first join. The Docker section gains HORIZON_ONLINE, and init mentions --offline.
  • Movement checks and chunk pacing are in (#586, v2026.10.17.16+). The "in review" bullet is gone, as is the locator-bar one (#692).
  • "How fast is it" now gives the rerun in #683, on main at 7bbbf6e9 on a quiet 4-thread machine. It covers equal work, walking and 100 players, and says where vanilla wins: P95 at 25 and 50 walking bots, and the mean tick in the full-speed explore pass at 10 and 25. The "can't keep up at 25 players" warning is gone, because it no longer holds.

Still said plainly, because it's still true:

  • Horizon's own client can't sign in to a Microsoft account. That needs an Azure app registration and Mojang's approval. So Horizon players join offline servers only, and the guide says to keep those on a LAN or tailnet.
  • No secure chat. Chat isn't signed and enforce-secure-profile has no effect.
  • No published Docker image. You build it yourself, and publishing needs the project owner.
  • Portals with several players online don't move remote players yet.

Website: /server. build.mjs renders docs/hosting.md, from its first ## section on, into src/server.html, so the page and the doc have one source. Like the README, it comes from the checkout or from main on GitHub. The guide has no tables, because the site's Markdown renderer doesn't render them. Also:

  • the Caddyfile rewrites /server;
  • the sitemap lists it, and the footer links "Host a server".

Fix found on the way: the CSP script/style hashes were computed from index.html only, so the privacy page's own inline theme script was blocked in production. They now cover every page.

How it was checked

  • The real installer from main was run on the Mac mini into a scratch folder: curl … install.sh | sh -s -- --dir … --bin …. It installed v2026.10.17.05, and its checksum matched.

  • With that installed release:

    • init --eula --world … --seed … --port … --whitelist --player Alex --op Alex --yes;
    • start (20 s), status, cmd list, panel, backup first, backups, logs, whitelist list, op Steve;
    • restore first --yes on the running server (it restarted on the restored world, with the old one kept in backups/replaced-…), stop, service print.

    The status output in the guide comes from that run.

  • After the update, node build.mjs builds the site, and /server renders the new "How fast is it" section.

  • No Rust changed. cargo fmt --all --check passes, and tools/parity.py selects 0 of 314 harnesses for the changed files.

Not checked: install.ps1 on Windows, and the page's look in a browser.

Needs Ludovic: nothing to merge this. Railway redeploys the site from main as usual. The benchmark link in section 10 points to benchmarks/server-2026-10-17 on main, so it resolves once #683 merges.

🤖 Generated with Claude Code


🔄 This issue represents a GitHub Pull Request. It cannot be merged through Gitea due to API limitations.

## 📋 Pull Request Information **Original PR:** https://github.com/horizon-rust/horizon/pull/671 **Author:** [@ludovic111](https://github.com/ludovic111) **Created:** 10/17/2026 **Status:** ✅ Merged **Merged:** 10/17/2026 **Merged by:** [@ludovic111](https://github.com/ludovic111) **Base:** `main` ← **Head:** `docs/host-a-server` --- ### 📝 Commits (6) - [`57ee531`](https://github.com/horizon-rust/horizon/commit/57ee531c639e1e899d63a786fd878ad9cb1c76e4) Host a server: a guide in docs/hosting.md, and the site's /server page built from it - [`74da721`](https://github.com/horizon-rust/horizon/commit/74da7212491cf652675630defb74367a2c669089) Hosting guide: online mode is merged, the 10-17 benchmark, working links - [`042f634`](https://github.com/horizon-rust/horizon/commit/042f634c7aa36fb5d9ac5e1e99a4af886780b856) Hosting guide: link the locator bar PR - [`4fffbaa`](https://github.com/horizon-rust/horizon/commit/4fffbaa1c77b526efbbf4888273d22631b57154f) Merge origin/main into docs/host-a-server - [`897cd7a`](https://github.com/horizon-rust/horizon/commit/897cd7a1b78ee8f7f77e660057139975594223bc) Hosting guide: names you add are accounts (#589, #694), the locator bar is in, HORIZON_ONLINE - [`68b0ad8`](https://github.com/horizon-rust/horizon/commit/68b0ad81992141ad79fec5573c29cfd3601b4ef0) Hosting guide: movement checks are in (#586), benchmark on main 7bbbf6e9 ### 📊 Changes **8 files changed** (+376 additions, -9 deletions) <details> <summary>View changed files</summary> 📝 `docs/README.md` (+2 -1) ➕ `docs/hosting.md` (+326 -0) 📝 `website/Caddyfile` (+2 -1) 📝 `website/README.md` (+2 -1) 📝 `website/build.mjs` (+11 -5) 📝 `website/public/sitemap.xml` (+1 -0) 📝 `website/src/index.html` (+1 -1) ➕ `website/src/server.html` (+31 -0) </details> ### 📄 Description > 🤖 Opened by Ludovic's AI agent (Claude), not by Ludovic himself. A "host a server" page, written from what is on `main` today, for the docs and the website. **docs/hosting.md** (new; docs/README.md links it). It covers: - install (`install.sh` / `install.ps1`, or build from source); - preparing the game files, including on a headless machine; - the first run (`init`, interactive or with flags), `run`, `start` and `status`; - `server.toml`, and importing a vanilla `server.properties`; - every CLI command; - the web panel and how to reach it safely; - backups and restore, services, and building the Docker image yourself; - how fast it is, from the latest benchmark; - troubleshooting. **Updated 2026-10-17 (evening) to match `main`:** - **Online mode is in.** With `online_mode = true` (the default), official-launcher players join with their own accounts (v2026.10.17.07+). The old whitelist / offline-UUID caveat is gone: since #589 and #694 (v2026.10.17.14+), `init --player`, `whitelist add`, `op` and `ban` look names up as vanilla does (`usercache.json`, then Mojang's profile service), so friends can be whitelisted before they first join. The Docker section gains `HORIZON_ONLINE`, and `init` mentions `--offline`. - **Movement checks and chunk pacing are in** (#586, v2026.10.17.16+). The "in review" bullet is gone, as is the locator-bar one (#692). - **"How fast is it"** now gives the rerun in #683, on `main` at `7bbbf6e9` on a quiet 4-thread machine. It covers equal work, walking and 100 players, and says where vanilla wins: P95 at 25 and 50 walking bots, and the mean tick in the full-speed explore pass at 10 and 25. The "can't keep up at 25 players" warning is gone, because it no longer holds. **Still said plainly, because it's still true:** - **Horizon's own client can't sign in to a Microsoft account.** That needs an Azure app registration and Mojang's approval. So Horizon players join offline servers only, and the guide says to keep those on a LAN or tailnet. - **No secure chat.** Chat isn't signed and `enforce-secure-profile` has no effect. - **No published Docker image.** You build it yourself, and publishing needs the project owner. - **Portals with several players online** don't move remote players yet. **Website: `/server`.** `build.mjs` renders docs/hosting.md, from its first `##` section on, into `src/server.html`, so the page and the doc have one source. Like the README, it comes from the checkout or from `main` on GitHub. The guide has no tables, because the site's Markdown renderer doesn't render them. Also: - the Caddyfile rewrites `/server`; - the sitemap lists it, and the footer links "Host a server". **Fix found on the way:** the CSP script/style hashes were computed from index.html only, so the privacy page's own inline theme script was blocked in production. They now cover every page. **How it was checked** - The real installer from `main` was run on the Mac mini into a scratch folder: `curl … install.sh | sh -s -- --dir … --bin …`. It installed v2026.10.17.05, and its checksum matched. - With that installed release: - `init --eula --world … --seed … --port … --whitelist --player Alex --op Alex --yes`; - `start` (20 s), `status`, `cmd list`, `panel`, `backup first`, `backups`, `logs`, `whitelist list`, `op Steve`; - `restore first --yes` on the running server (it restarted on the restored world, with the old one kept in `backups/replaced-…`), `stop`, `service print`. The status output in the guide comes from that run. - After the update, `node build.mjs` builds the site, and `/server` renders the new "How fast is it" section. - No Rust changed. `cargo fmt --all --check` passes, and `tools/parity.py` selects 0 of 314 harnesses for the changed files. **Not checked:** `install.ps1` on Windows, and the page's look in a browser. **Needs Ludovic:** nothing to merge this. Railway redeploys the site from `main` as usual. The benchmark link in section 10 points to `benchmarks/server-2026-10-17` on `main`, so it resolves once #683 merges. 🤖 Generated with [Claude Code](https://claude.com/claude-code) --- <sub>🔄 This issue represents a GitHub Pull Request. It cannot be merged through Gitea due to API limitations.</sub>
bsakaguchi 2026-11-02 15:58:30 +07:00
Sign in to join this conversation.
No milestone
No project
No assignees
1 participant
Notifications
Due date
The due date is invalid or out of range. Please use the format "yyyy-mm-dd".

No due date set.

Dependencies

No dependencies set.

Reference
horizon-rust/horizon#2717
No description provided.