diff options
author | Chris Montgomery <chris@cdom.io> | 2023-08-05 15:55:07 -0400 |
---|---|---|
committer | Chris Montgomery <chris@cdom.io> | 2023-08-05 16:08:35 -0400 |
commit | aefa0bb6cccf336ecc19c928580f72cb0903933b (patch) | |
tree | d7fbccd0077a159d3bfe6a097be93fd0f610745f /nixos/modules/services/matrix/synapse.md | |
parent | cfff9bb026b066f55a4d1447635ba6e71fbbcc5e (diff) | |
download | nixpkgs-aefa0bb6cccf336ecc19c928580f72cb0903933b.tar nixpkgs-aefa0bb6cccf336ecc19c928580f72cb0903933b.tar.gz nixpkgs-aefa0bb6cccf336ecc19c928580f72cb0903933b.tar.bz2 nixpkgs-aefa0bb6cccf336ecc19c928580f72cb0903933b.tar.lz nixpkgs-aefa0bb6cccf336ecc19c928580f72cb0903933b.tar.xz nixpkgs-aefa0bb6cccf336ecc19c928580f72cb0903933b.tar.zst nixpkgs-aefa0bb6cccf336ecc19c928580f72cb0903933b.zip |
nixos/matrix-synapse: set public baseurl in example config
Diffstat (limited to 'nixos/modules/services/matrix/synapse.md')
-rw-r--r-- | nixos/modules/services/matrix/synapse.md | 8 |
1 files changed, 7 insertions, 1 deletions
diff --git a/nixos/modules/services/matrix/synapse.md b/nixos/modules/services/matrix/synapse.md index cad91ebf58d..1d22805b472 100644 --- a/nixos/modules/services/matrix/synapse.md +++ b/nixos/modules/services/matrix/synapse.md @@ -27,7 +27,8 @@ please refer to the { pkgs, lib, config, ... }: let fqdn = "${config.networking.hostName}.${config.networking.domain}"; - clientConfig."m.homeserver".base_url = "https://${fqdn}"; + baseUrl = "https://${fqdn}"; + clientConfig."m.homeserver".base_url = baseUrl; serverConfig."m.server" = "${fqdn}:443"; mkWellKnown = data: '' add_header Content-Type application/json; @@ -97,6 +98,11 @@ in { services.matrix-synapse = { enable = true; settings.server_name = config.networking.domain; + # The public base URL value must match the `base_url` value set in `clientConfig` above. + # The default value here is based on `server_name`, so if your `server_name` is different + # from the value of `fqdn` above, you will likely run into some mismatched domain names + # in client applications. + settings.public_baseurl = baseUrl; settings.listeners = [ { port = 8008; bind_addresses = [ "::1" ]; |