mirror of
https://github.com/genebean/dots.git
synced 2026-03-27 17:37:43 -04:00
40 lines
995 B
Nix
40 lines
995 B
Nix
{ config, ... }: {
|
|
services.matrix-synapse = {
|
|
enable = true;
|
|
configureRedisLocally = true;
|
|
enableRegistrationScript = true;
|
|
extraConfigFiles = [
|
|
config.sops.secrets.matrix_secrets_yaml.path
|
|
];
|
|
settings = {
|
|
server_name = "technicalissues.us";
|
|
public_baseurl = "https://matrix.technicalissues.us";
|
|
signing_key_path = config.sops.secrets.matrix_homeserver_signing_key.path;
|
|
listeners = [
|
|
{
|
|
port = 8008;
|
|
tls = false;
|
|
type = "http";
|
|
x_forwarded = true;
|
|
bind_addresses = [
|
|
"::1"
|
|
"127.0.0.1"
|
|
];
|
|
resources = [
|
|
{
|
|
names = [
|
|
"client"
|
|
"federation"
|
|
];
|
|
compress = false;
|
|
}
|
|
];
|
|
}
|
|
];
|
|
url_preview_enabled = true;
|
|
enable_registration = false;
|
|
trusted_key_servers = [{ server_name = "matrix.org"; }];
|
|
};
|
|
|
|
};
|
|
}
|