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 fbfff0e1a7
commit 2c487d5505
No known key found for this signature in database
GPG key ID: 8FBE8AAD32FA12B7

View file

@ -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";
};
}