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'.
This commit is contained in:
parent
d337fec565
commit
0dc2e6b64f
2 changed files with 67 additions and 1 deletions
|
|
@ -23,6 +23,7 @@ let
|
|||
swarmServiceDomains = config.services.hyperhive.swarm.serviceDomains;
|
||||
matrixCfg = config.services.hyperhive.swarm.matrix;
|
||||
autheliaCfg = config.services.hyperhive.swarm.authelia;
|
||||
uiCfg = config.services.hyperhive.swarm.ui;
|
||||
forgeCfg = config.services.hyperhive.swarm.forge;
|
||||
networkCfg = config.services.hyperhive.network;
|
||||
|
||||
|
|
@ -70,6 +71,7 @@ let
|
|||
forgeCfg
|
||||
matrixCfg
|
||||
autheliaCfg
|
||||
uiCfg
|
||||
hyperhiveDomain
|
||||
dashboardDist
|
||||
swaggerUiTheme
|
||||
|
|
|
|||
Loading…
Reference in a new issue