hive-matrix: prefill the chat client with the server name, not the hive domain
This commit is contained in:
parent
2de07c4575
commit
1cc1cb804d
1 changed files with 21 additions and 9 deletions
|
|
@ -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
|
||||
|
|
|
|||
Loading…
Reference in a new issue