serve matrix discovery at the swarm apex, keep the pinned hive case
This commit is contained in:
parent
c9649b258f
commit
2e7d49bb88
10 changed files with 187 additions and 83 deletions
|
|
@ -454,11 +454,10 @@ in
|
|||
# longest-prefix rule puts `/_matrix/`
|
||||
# ahead of `/` with no ordering needed.
|
||||
#
|
||||
# ⚠️ The `.well-known/matrix/*` delegation is deliberately NOT here.
|
||||
# It stays on the hive's own vhost because the spec requires it to
|
||||
# be served at the *server name*, which is the hive domain — it is
|
||||
# the hive answering "where is my homeserver", not the homeserver
|
||||
# answering for itself.
|
||||
# ⚠️ The `.well-known/matrix/*` delegation is deliberately NOT here:
|
||||
# the spec requires it at the *server name*. It is served by the swarm
|
||||
# apex (./swarm-ui.nix) for the default server name, or by the hive
|
||||
# domain's vhost (./glue-matrix-hive-discovery.nix) for a pinned one.
|
||||
services.hyperhive.gateway.vhosts = lib.optionalAttrs (cfg.gatewayHost != null) {
|
||||
"${cfg.gatewayHost}" = {
|
||||
locations = {
|
||||
|
|
|
|||
Loading…
Reference in a new issue