Watch
0
0
Fork
You've already forked hyperhive
0

hive-matrix: prefill the chat client with the server name, not the hive domain

This commit is contained in:
damocles 2026-11-10 21:45:49 +01:00 • committed by mara
commit 1cc1cb804d

View file

@ -63,6 +63,17 @@ let
in
lib.hasInfix "client_max_body_size 100048576;" c && !(lib.hasInfix "client_max_body_size 50M" c);
}
{
# The chat client signs in against the server name, which for a default
# swarm is the swarm domain; the hive domain (`h1.t.local`) is a vhost
# that answers no discovery there, so a prefill of it is a dead end.
name = "the chat client's homeserver prefill is the server name, not the hive domain";
ok =
let
c = matrixBodyCap.services.nginx.virtualHosts."chat.t.local".locations."= /config.json".extraConfig;
in
lib.hasInfix ''{"defaultHomeserver":"t.local"}'' c && !(lib.hasInfix "h1.t.local" c);
}
{
# Absence arm. A hive with no client identity gets no
# store environment at all — the daemon reports a queue it cannot serve