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:
parent
fbfff0e1a7
commit
2c487d5505
1 changed files with 10 additions and 3 deletions
|
@ -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";
|
||||
};
|
||||
}
|
||||
|
|
Loading…
Reference in a new issue