From 8c118951d586847f6c996ce718737b79017aa330 Mon Sep 17 00:00:00 2001 From: Maximilian Bosch Date: Sun, 19 Mar 2023 17:16:05 +0100 Subject: [PATCH] nixos/doc: fix .well-known example for matrix-synapse I'm using this config on my homeserver and while trying out alternative Matrix clients I discovered (pun intended) that the auto-discovery of my homeserver is broken. While investigating I found out that neither the JS nor the Rust SDK (tested via element-web and fractal) are happy about an empty `m.identity_server`-block. Removing this part fixed the problem for me. --- nixos/modules/services/matrix/synapse.md | 5 +---- 1 file changed, 1 insertion(+), 4 deletions(-) diff --git a/nixos/modules/services/matrix/synapse.md b/nixos/modules/services/matrix/synapse.md index 7a9ddf8c9da..cad91ebf58d 100644 --- a/nixos/modules/services/matrix/synapse.md +++ b/nixos/modules/services/matrix/synapse.md @@ -27,10 +27,7 @@ please refer to the { pkgs, lib, config, ... }: let fqdn = "${config.networking.hostName}.${config.networking.domain}"; - clientConfig = { - "m.homeserver".base_url = "https://${fqdn}"; - "m.identity_server" = {}; - }; + clientConfig."m.homeserver".base_url = "https://${fqdn}"; serverConfig."m.server" = "${fqdn}:443"; mkWellKnown = data: '' add_header Content-Type application/json;