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!
This commit is contained in:
stuebinm 2021-03-18 22:50:18 +01:00
parent e556d0c7e0
commit d761d6b6ac
No known key found for this signature in database
GPG key ID: 8FBE8AAD32FA12B7

View file

@ -1,4 +1,5 @@
{config, lib, pkgs, ... }: {config, lib, pkgs, ... }:
{ {
networking.firewall.allowedTCPPorts = [ 80 443 ]; networking.firewall.allowedTCPPorts = [ 80 443 ];
@ -69,7 +70,12 @@
services.matrix-synapse = { services.matrix-synapse = {
enable = true; 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 = [ listeners = [
{ {
port = 8008; port = 8008;
@ -93,14 +99,15 @@
serverAliases = [ serverAliases = [
"element.hacc.space" "element.hacc.space"
]; ];
root = pkgs.element-web.override { root = pkgs.element-web.override {
conf = { conf = {
default_server_config."m.homeserver" = { default_server_config."m.homeserver" = {
"base_url" = "matrix.hacc.space"; "base_url" = "https://matrix.hacc.space";
"server_name" = "matrix.hacc.space"; "server_name" = "matrix.hacc.space";
}; };
}; };
}; };
#locations."= /config.element.matrix.hacc.space.json".alias = element.outPath + "/config.json";
}; };
} }