cleanup
This commit is contained in:
parent
e8d15a1267
commit
7b2210549d
2 changed files with 0 additions and 62 deletions
|
@ -1,57 +0,0 @@
|
|||
{ secret, ... }:
|
||||
|
||||
let
|
||||
connectionString = "postgres://${secret.dendrite.database.user}:${secret.dendrite.database.password}@10.99.99.3/dendrite?sslmode=disable";
|
||||
in
|
||||
{
|
||||
services.dendrite = {
|
||||
enable = true;
|
||||
|
||||
environmentFile = "/var/lib/dendrite-secrets/environment";
|
||||
|
||||
loadCredential = [
|
||||
"private_key:/var/lib/dendrite-secrets/matrix_key.pem"
|
||||
];
|
||||
|
||||
settings = {
|
||||
global = {
|
||||
server_name = "kempkens.io";
|
||||
private_key = "$CREDENTIALS_DIRECTORY/private_key";
|
||||
metrics.enabled = false;
|
||||
report_stats.enabled = false;
|
||||
};
|
||||
|
||||
app_service_api = {
|
||||
database.connection_string = connectionString;
|
||||
config_files = [
|
||||
"/etc/container-matrix/signal/registration.yaml"
|
||||
"/etc/container-matrix/telegram/registration.yaml"
|
||||
"/etc/container-matrix/whatsapp/registration.yaml"
|
||||
];
|
||||
};
|
||||
|
||||
federation_api.database.connection_string = connectionString;
|
||||
key_server.database.connection_string = connectionString;
|
||||
media_api.database.connection_string = connectionString;
|
||||
mscs.database.connection_string = connectionString;
|
||||
room_server.database.connection_string = connectionString;
|
||||
sync_api.database.connection_string = connectionString;
|
||||
user_api.account_database.connection_string = connectionString;
|
||||
user_api.device_database.connection_string = connectionString;
|
||||
|
||||
client_api = {
|
||||
registration_shared_secret = "$REGISTRATION_SHARED_SECRET";
|
||||
registration_disabled = true;
|
||||
};
|
||||
|
||||
mscs.mscs = [
|
||||
# threading
|
||||
"msc2946"
|
||||
# spaces
|
||||
"msc2836"
|
||||
];
|
||||
};
|
||||
};
|
||||
|
||||
networking.firewall.allowedTCPPorts = [ 8008 ];
|
||||
}
|
|
@ -81,11 +81,6 @@
|
|||
"2001:db8::/32"
|
||||
"2a01:4f8:c2c:989c::/64"
|
||||
];
|
||||
url_preview_url_blacklist = [
|
||||
{ username = "*"; }
|
||||
{ scheme = "http"; }
|
||||
{ netloc = "^[0-9]+\.[0-9]+\.[0-9]+\.[0-9]+$"; }
|
||||
];
|
||||
|
||||
inherit (secret.synapse) registration_shared_secret;
|
||||
inherit (secret.synapse) macaroon_secret_key;
|
||||
|
|
Loading…
Reference in a new issue