add more endpoints

This commit is contained in:
Devin Zuczek
2026-06-11 02:10:01 -04:00
parent 0fea1fff14
commit 4a97e05866
37 changed files with 55656 additions and 16 deletions
+20
View File
@@ -0,0 +1,20 @@
# ns
Name-server / service-discovery worker served at `ns.rec.djdevin.net`.
`GET /` returns the endpoints document the game client fetches on startup to
discover every service host (Accounts, API, Auth, Econ, Matchmaking,
Notifications, …).
The document is served from `static/endpoints.json` (a snapshot downloaded from
the live host). **It will be generated dynamically eventually** — e.g. per
environment / from the deployed routes — at which point the static file goes
away.
## Updating the snapshot
```sh
curl -sS https://rec.djdevin.net/ -o apps/ns/static/endpoints.json
```
(Bundled at build time, so a redeploy is required for changes to take effect.)