28 lines
547 B
Nix
28 lines
547 B
Nix
{ config, pkgs, lib, ... }:
|
|
let
|
|
fqdn = "matrix.broccoli.town";
|
|
in {
|
|
services.matrix-synapse = {
|
|
enable = true;
|
|
settings = {
|
|
server_name = "broccoli.town";
|
|
database.name = "sqlite3";
|
|
max_upload_size = "50M";
|
|
listeners = [
|
|
{
|
|
port = 8008;
|
|
type = "http";
|
|
tls = false;
|
|
x_forwarded = true;
|
|
resources = [
|
|
{
|
|
names = [ "client" "federation" ];
|
|
compress = false;
|
|
}
|
|
];
|
|
}
|
|
];
|
|
};
|
|
};
|
|
}
|