hyperhive/nix/host-modules/hive-gateway
Repository files (latest commit first)
Filename Latest commit message Latest commit date
atlas 0dc2e6b64f feat(3167): the swarm UI vhost, behind an authelia subrequest
Serves the static bundle on the swarm apex and gates it with
auth_request - the first one in this gateway, everything else being
auth_basic + htpasswd.

Header set measured against the pinned authelia (4.39.20) rather than
copied from an example: X-Original-URL and X-Original-Method are present
as literals and are what the auth-request implementation reads, while
X-Forwarded-Uri does not appear in that binary at all - sending it would
look like configuration and be dead weight. The endpoint is
/api/authz/auth-request; /api/verify is the legacy path older examples
show.

auth_request_set captures the return URL BEFORE the error_page jump: in
the 401 handler $request_uri is the internal one, so building the link
there sends the operator back to the auth subrequest rather than the
page they asked for.

Authorisation is the access_control rule from the previous commit, not
this subrequest: auth_request answers 'is there a session'.
2026-08-12 17:40:24 +02:00
..
default.nix feat(3167): the swarm UI vhost, behind an authelia subrequest 2026-08-12 17:40:24 +02:00
dnsmasq.nix docs(3191): drop the migration history from the gateway comments 2026-08-12 13:26:58 +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 docs(3191): the gateway's comments describe a host service, not a container 2026-08-12 12:20:28 +02:00
vhosts.nix feat(3167): the swarm UI vhost, behind an authelia subrequest 2026-08-12 17:40:24 +02:00