docs(3202): state the file's scope positively
Per mara's review: "describe what is, not what is not." The header said "the swarm services' vhosts are NOT here", which describes the file by its absences and dates immediately — the list of what is missing grows every time a service is added, while the list of what the file holds does not. Reworded to say what it is: the hive's own gateway surface (the `_` default server and the vhost named for the hive domain), with the scope line stating where a swarm service's vhost lives rather than where it doesn't.
This commit is contained in:
parent
6aabca9ecb
commit
3be7a211d0
1 changed files with 10 additions and 10 deletions
|
|
@ -1,14 +1,14 @@
|
||||||
# nginx virtual-host tree for the gateway: the `_` default server —
|
# nginx virtual-host tree for the **hive's own** gateway surface: the `_`
|
||||||
# now only a catch-all that rejects — and the hive's own domain, which
|
# default server, which answers unmatched `Host` with a bare 444, and the
|
||||||
# carries the dashboard, per-agent routing, matrix discovery and the
|
# vhost named for the hive domain, which carries the dashboard, per-agent
|
||||||
# swagger UI.
|
# routing, matrix discovery, the swagger UI and the legacy
|
||||||
|
# `<hive>/matrix/*` redirect.
|
||||||
#
|
#
|
||||||
# ⚠️ The swarm services' vhosts are NOT here. Forge, matrix and authelia
|
# Scope: a swarm service declares its own vhost and dns name in its own
|
||||||
# each declare their own, built from the same kit this file consumes
|
# module, built from the kit this file also consumes
|
||||||
# (`services.hyperhive.gateway.lib`, ./vhost-lib.nix), so a service owns
|
# (`services.hyperhive.gateway.lib`, ./vhost-lib.nix). That keeps a
|
||||||
# its whole gateway surface — vhost and dns name — inside its own
|
# service's gateway surface next to the service, and keeps this file to
|
||||||
# module. A service name appearing in this file is the signal that the
|
# the surface the hive itself serves.
|
||||||
# coupling is growing back.
|
|
||||||
#
|
#
|
||||||
# Pure function — called from ./default.nix with the outer-scope config
|
# Pure function — called from ./default.nix with the outer-scope config
|
||||||
# values as arguments; returns `{ virtualHosts }`.
|
# values as arguments; returns `{ virtualHosts }`.
|
||||||
|
|
|
||||||
Loading…
Reference in a new issue