Add initial dingserver config

This commit is contained in:
2022-01-14 18:47:54 +00:00
parent 500b5608e9
commit 432f7fe39d
5 changed files with 186 additions and 0 deletions

View File

@@ -0,0 +1,28 @@
{ config, pkgs, lib, ... }:
let
fqdn = "matrix.broccoli.town";
in {
networking.firewall.allowedTCPPorts = [ 80 8448 443 ];
services.matrix-synapse = {
enable = true;
server_name = "broccoli.town";
database_type = "sqlite3";
max_upload_size = "50M";
listeners = [
{
port = 8008;
bind_address = "::1";
type = "http";
tls = false;
x_forwarded = true;
resources = [
{
names = [ "client" "federation" ];
compress = false;
}
];
}
];
};
}