mirror of
https://github.com/SebastianWendel/nixpkgs.git
synced 2024-09-20 04:19:00 +02:00
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.
This commit is contained in:
parent
7f55ff0b21
commit
8c118951d5
|
@ -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;
|
||||
|
|
Loading…
Reference in a new issue