diff --git a/network/TONIGHT-DEPLOYMENT.md b/network/TONIGHT-DEPLOYMENT.md new file mode 100644 index 00000000..9850ce91 --- /dev/null +++ b/network/TONIGHT-DEPLOYMENT.md @@ -0,0 +1,51 @@ +# Tonight's Hetzner deployment runbook + +## Intended layout (7 VMs) +| VM | Role | Port | +|---|---|---| +| dune-proxy-01 | Velocity | 25565 public | +| dune-lobby-01 | Spacing Guild Paper + CloudPanel website + Pterodactyl panel/Wings | 25571 private | +| dune-arrakis-01 | Arrakis Paper + Wings | 25566 private | +| dune-giedi-01 | Giedi Prime Paper + Wings | 25567 private | +| dune-kaitain-01 | Kaitain Paper + Wings | 25568 private | +| dune-caladan-01 | Caladan Paper + Wings | 25569 private | +| dune-sigma-01 | Sigma Draconis IV Paper + Wings | 25570 private | + +## Provisioning prerequisites +Create Debian VMs in Hetzner Cloud, attach all seven to a Hetzner private network, +install your SSH public key, and record private IPs. Choose VM RAM/CPU based on +expected players; lobby VM needs headroom for website, database, panel and Paper. +Do not paste API tokens, passwords or SSH private keys into chat or Git. + +## One-time network config +Copy `network/network.example.json` to `network/network.json` locally and +fill in the private IPs and SSH hosts. Never commit personal infrastructure +details or the forwarding secret. Run +`python3 network/apply-network.py network/network.json --output network/generated` +to render settings. The `--deploy` mode requires SSH key access and correctly +installed services; test on staging before using it. + +## World files +`network/generate-world-files.py` generates a complete per-world config folder +and zip for each world, based on the DuneTerrain source configuration. +These are **world-generation configuration files**, not pre-generated Minecraft +region (.mca) files. Actual playable worlds must be generated by starting each +Paper backend with the correct compatible generator installed. Spacing Guild +custom lobby generator is not implemented; do not advertise it as ready. +World generation should be tested with a fresh world directory first. + +## Installation order +1. On lobby VM: CloudPanel first, then Java 21, then Pterodactyl panel and Wings. +2. On all other VMs: Java 21 and Wings prerequisites. +3. Register each VM as a Pterodactyl node and configure Wings from panel-issued credentials. +4. Install Paper 1.21.4 and Velocity via supported Pterodactyl eggs. +5. Upload the compiled Dune plugins and planet-specific generator config. +6. Configure Velocity modern forwarding and identical secret across Paper nodes. +7. Configure CloudPanel site + HTTPS and a separate secured panel domain. +8. Start each server, inspect logs, test teleport, and verify only Velocity + is reachable publicly. Do not run systemd Minecraft units alongside Wings. + +## Known gaps +No Hetzner VM has been created by these scripts. No pre-generated Minecraft world +data exists. Pterodactyl is not installed remotely. The generator's support for +Spacing Guild and the full network package still require verification.