mirror of
https://github.com/djdevin/recflare.git
synced 2026-09-09 07:01:27 -07:00
testing generic deploy
This commit is contained in:
+9
-7
@@ -1,20 +1,22 @@
|
||||
# ns
|
||||
|
||||
Name-server / service-discovery worker served at `ns.rec.djdevin.net`.
|
||||
Name-server / service-discovery worker served on the `ns` subdomain.
|
||||
|
||||
`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.
|
||||
The document is served from `static/endpoints.json`, whose hosts are generated
|
||||
from the repo-root `env.json` by `runx sync` — every entry is derived from the
|
||||
configured base `domain`.
|
||||
|
||||
## Updating the snapshot
|
||||
## Updating endpoints
|
||||
|
||||
Change `domain` in `env.json` (or edit the host map in `static/endpoints.json`),
|
||||
then regenerate:
|
||||
|
||||
```sh
|
||||
curl -sS https://rec.djdevin.net/ -o apps/ns/static/endpoints.json
|
||||
just sync
|
||||
```
|
||||
|
||||
(Bundled at build time, so a redeploy is required for changes to take effect.)
|
||||
|
||||
Reference in New Issue
Block a user