services: initial matrix

This commit is contained in:
Kabbone 2022-12-10 17:23:41 +01:00
parent 0b26601da8
commit 08a4b3d96f
Signed by: Kabbone
SSH Key Fingerprint: SHA256:A5zPB5I6u5V78V51c362BBdCwhDhfDUVbt7NfKdjWBY

View File

@ -0,0 +1,51 @@
#
# System notifications
#
{ config, lib, pkgs, ... }:
{
services.matrix-synapse = {
enable = true;
settings = {
server_name = "kabtop.de";
public_baseurl = "https://kabtop.de:8448";
turn_uris = [
"turn:srtsa"
];
turn_shared_secret = "psycopg2";
database.args.user = "synapse";
database.args.database = "synapsedb";
admin_contact: "mailto:admin@kabtop.de";
retention:
enabled: true
default_policy:
min_lifetime: 1d
max_lifetime: 1y
federation_client_minimum_tls_version: 1.2
password_config:
policy:
enabled: true
minimum_length: 8
require_digit: true
require_lowercase: true
require_uppercase: true
email:
smtp_host: in-v3.mailjet.com
smtp_port: 587
smtp_user: "secret123"
smtp_pass: "secret123"
require_transport_security: true
enable_tls: true
notif_from: "%(app)s homeserver <postmaster@kabtop.de>"
app_name: "Kabtop Matrix"
enable_notifs: true
push:
include_content: false
database:
args:
password: "secret123"
host: localhost
};
}