move the hive's vhosts and matrix discovery out of the gateway
The dashboard vhost, the hive domain vhost and the dashboard's local name move to hive-c0re/vhosts.nix; the matrix .well-known discovery and the legacy /matrix/ redirect move to glue-matrix-hive-discovery.nix, which adds them to the hive domain vhost. Both declare through gateway.vhosts. hive-gateway/vhosts.nix keeps the catch-all only, and the gateway no longer reads deploy.matrix or c0re.servedFrontend, nor deploy.hive-controller.enable for its vhosts. Part of #3742.
This commit is contained in:
parent
2489830772
commit
b4c5954491
17 changed files with 391 additions and 378 deletions
|
|
@ -3,9 +3,9 @@
|
|||
# `swarm.dashboardDomain`) — this one answers for the swarm apex and is the
|
||||
# operator's view across hives.
|
||||
#
|
||||
# Options only. The vhost itself is declared in hive-gateway/vhosts.nix
|
||||
# alongside forge/matrix/authelia: a service module says *how* it is
|
||||
# reached, the gateway says *whether this host serves it*.
|
||||
# Options, and the swarm apex's vhost, declared below through
|
||||
# `gateway.vhosts`: a service module says *how* it is reached, the gateway
|
||||
# says *whether this host serves it*.
|
||||
{
|
||||
lib,
|
||||
config,
|
||||
|
|
@ -252,7 +252,7 @@ in
|
|||
};
|
||||
# Swagger UI: same "nginx hosts the themed dist straight from
|
||||
# the store, only /api/openapi.json is dynamic" shape as the
|
||||
# per-hive gateway's `swaggerUiLocations`.
|
||||
# hive dashboard's `swaggerUiLocations` (./hive-c0re/vhosts.nix).
|
||||
"= /api/docs" = {
|
||||
extraConfig = ''
|
||||
return 301 /api/docs/;
|
||||
|
|
|
|||
Loading…
Reference in a new issue