Add initial dingserver config
This commit is contained in:
28
hosts/dingserver/synapse.nix
Normal file
28
hosts/dingserver/synapse.nix
Normal 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;
|
||||
}
|
||||
];
|
||||
}
|
||||
];
|
||||
};
|
||||
}
|
||||
Reference in New Issue
Block a user