hyperhive/nix/host-modules/hive-gateway
Repository files (latest commit first)
Filename Latest commit message Latest commit date
atlas c32a9367e4 gateway: reject unmatched Host instead of serving the dashboard
The `_` vhost was serving the hive's own surface, so every dashboard and
agent-UI request matched the default server rather than a named vhost --
and so did a request for any name at all, including a raw IP.

Split it: `_` keeps only `return 444`, and the hive surface moves to a
vhost named for the hive domain. `_` is `mkDefault` so an operator can
claim default_server themselves, plus an assertion for the case where
they add one without turning ours off -- nginx refuses to start on a
duplicate default_server and nixpkgs asserts nothing, so that would
otherwise surface as a gateway outage at rebuild time.
2026-08-13 19:57:27 +02:00
..
default.nix gateway: reject unmatched Host instead of serving the dashboard 2026-08-13 19:57:27 +02:00
dnsmasq.nix refactor(3202): the swarm UI declares its own vhost and dns name 2026-08-13 16:19:08 +02:00
error-pages.nix feat(3189): the sso vhost serves a themed page instead of a bare 502 2026-08-12 10:29:16 +02:00
options.nix refactor(3202): all-local asserts the host's own /etc/hosts entries 2026-08-13 17:26:08 +02:00
vhost-lib.nix refactor(3202): authelia declares its own vhost and dns name 2026-08-13 16:14:37 +02:00
vhosts.nix gateway: reject unmatched Host instead of serving the dashboard 2026-08-13 19:57:27 +02:00