lol

nixos/matrix-synapse: set public baseurl in example config

+7 -1
+7 -1
nixos/modules/services/matrix/synapse.md
··· 27 27 { pkgs, lib, config, ... }: 28 28 let 29 29 fqdn = "${config.networking.hostName}.${config.networking.domain}"; 30 - clientConfig."m.homeserver".base_url = "https://${fqdn}"; 30 + baseUrl = "https://${fqdn}"; 31 + clientConfig."m.homeserver".base_url = baseUrl; 31 32 serverConfig."m.server" = "${fqdn}:443"; 32 33 mkWellKnown = data: '' 33 34 add_header Content-Type application/json; ··· 97 98 services.matrix-synapse = { 98 99 enable = true; 99 100 settings.server_name = config.networking.domain; 101 + # The public base URL value must match the `base_url` value set in `clientConfig` above. 102 + # The default value here is based on `server_name`, so if your `server_name` is different 103 + # from the value of `fqdn` above, you will likely run into some mismatched domain names 104 + # in client applications. 105 + settings.public_baseurl = baseUrl; 100 106 settings.listeners = [ 101 107 { port = 8008; 102 108 bind_addresses = [ "::1" ];