From e15b205214da8e32ac306080f98a4f788c78c930 Mon Sep 17 00:00:00 2001 From: stuebinm Date: Thu, 18 Mar 2021 22:50:18 +0100 Subject: [PATCH] Synapse/Element: Fixed the config. In brief: the example was missing a protocol specification. Also I just learnt that the element at app.element.io uses deprecated config options. Fun! --- services/matrix-synapse.nix | 13 ++++++++++--- 1 file changed, 10 insertions(+), 3 deletions(-) diff --git a/services/matrix-synapse.nix b/services/matrix-synapse.nix index dde8f7f..fcb61b2 100644 --- a/services/matrix-synapse.nix +++ b/services/matrix-synapse.nix @@ -1,4 +1,5 @@ {config, lib, pkgs, ... }: + { networking.firewall.allowedTCPPorts = [ 80 443 ]; @@ -69,7 +70,12 @@ services.matrix-synapse = { enable = true; - server_name = "matrix.hacc.space"; + server_name = "hacc.space"; + # TODO: this is horrible, and should probably be removed once everything's running + # so we won't have secrets in the nix store. + # + # I used this to test that the server works at all, and I've removed it again for now. + registration_shared_secret = ""; listeners = [ { port = 8008; @@ -93,14 +99,15 @@ serverAliases = [ "element.hacc.space" ]; - root = pkgs.element-web.override { conf = { default_server_config."m.homeserver" = { - "base_url" = "matrix.hacc.space"; + "base_url" = "https://matrix.hacc.space"; "server_name" = "matrix.hacc.space"; }; }; }; + + #locations."= /config.element.matrix.hacc.space.json".alias = element.outPath + "/config.json"; }; }