Compare commits

..

View file

@ -1,17 +1,9 @@
# nginx virtual-host tree for the **hive's own** gateway surface: the `_` # nginx virtual-host tree for the gateway: the `_` default server
# default server, which answers unmatched `Host` with a bare 444, and the # (dashboard, per-agent routing, matrix discovery), the forge, matrix
# vhost named for the hive domain, which carries the dashboard, per-agent # and authelia sub-domain vhosts, and the Accept-header SPA map for the
# routing, matrix discovery, the swagger UI and the legacy # matrix GUI. Pure function — called from ./default.nix with the
# `<hive>/matrix/*` redirect. # outer-scope config values as arguments; returns
# # `{ virtualHosts }`.
# Scope: a swarm service declares its own vhost and dns name in its own
# module, built from the kit this file also consumes
# (`services.hyperhive.gateway.lib`, ./vhost-lib.nix). That keeps a
# service's gateway surface next to the service, and keeps this file to
# the surface the hive itself serves.
#
# Pure function — called from ./default.nix with the outer-scope config
# values as arguments; returns `{ virtualHosts }`.
{ {
lib, lib,
cfg, # services.hyperhive.gateway cfg, # services.hyperhive.gateway