From 92a56bff1c7ffe3df9cb2ba77928b24c3945947c Mon Sep 17 00:00:00 2001 From: Kabbone Date: Sat, 24 Dec 2022 15:11:02 +0100 Subject: [PATCH] server: add matrix --- modules/services/server/matrix.nix | 31 ----------------------------- secrets/secrets.nix | 1 + secrets/services/matrix/synapse.age | 26 ++++++++++++++++++++++++ 3 files changed, 27 insertions(+), 31 deletions(-) create mode 100644 secrets/services/matrix/synapse.age diff --git a/modules/services/server/matrix.nix b/modules/services/server/matrix.nix index 38ac6e1..6b4b46d 100644 --- a/modules/services/server/matrix.nix +++ b/modules/services/server/matrix.nix @@ -15,37 +15,6 @@ extraConfigFiles = [ config.age.secrets."services/matrix/synapse.yml".path ]; - - 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 " - app_name: "Kabtop Matrix" - enable_notifs: true - push: - include_content: false - database: - args: - password: "secret123" - host: localhost }; } diff --git a/secrets/secrets.nix b/secrets/secrets.nix index a42e3e7..c0ff038 100644 --- a/secrets/secrets.nix +++ b/secrets/secrets.nix @@ -32,4 +32,5 @@ in #"passwords/services/mail/mailjet.age".publicKeys = servers ++ users; #"passwords/services/mail/mailjet.age".publicKeys = systems ++ users; "services/coturn/static-auth.age".publicKeys = servers ++ users; + "services/matrix/synapse.age".publicKeys = servers ++ users; } diff --git a/secrets/services/matrix/synapse.age b/secrets/services/matrix/synapse.age new file mode 100644 index 0000000..f54d05f --- /dev/null +++ b/secrets/services/matrix/synapse.age @@ -0,0 +1,26 @@ +age-encryption.org/v1 +-> ssh-ed25519 neExcQ bDWppOfoYU4VGbq864q0JXN250zMghYVt3s4IO7Auj4 +YHp12unTxssYTbPYTCBZY2LifKpIgxBN/UQfDtZ7aG0 +-> ssh-rsa VtjGpQ +D1uKfG8g0hXiig7riOaPONJFBsZgliXVShEVnD8QLyogX9GwYvawA7Vi7/OdeC9s +BLuwAPBcfLbpR5C5SBF1Qr9pdbwY3N4NVX7H5jR9hnZGU+b4AitDsNJCBSE+J7Pd +cIZsEqEjhlzqdrs6EcrcG9C2Sf19fAz9zglbw7oJfv8x5nUgx6ueFiMKduBIUW14 +7dOx8wx7YGwQ0N3gmuZXChrzp8sy7UcqK0mQYHlguB+4Ct7ehf+DMRPiuNs6878g +VfI/octxGSzGTSOwclA+AWyaShPEYhKyDL5i2ScEYaDM7Bqry5fGWqwFBxWv35AB +jyCgIixhj9F4EBhldEYwCXQlUuNLK3QlB9wGxev8K6wfLy5aX+3LGzomVJefRYS+ +ZWJlExxzmlKA5WHUIl70cGTGNE0nCKmOXzvOReGt934HBsBXyfJOMZJEORVSt7Yb +nCuKxzXmGHdGxOdktuyO9EuaCPolkSo/n7gqB3NVpdj6orKWuJqC+1G3ASBhYDnP +Ilu+a1AUZi55T6uFNIbZFBS9tYS2raO0JJzVpC3g5fJTPMwFzmq6Rj5vSUSGTgD7 +x3GT3XsMZrJTaFCV2NJP3XlFZB5bWwdXlQg5/OrkNcw2/U7wFGiiFU5zkdGwUyJc +QSVQEIKlPqTcm81tDrEpRyWEpEXpeRpvt7kkio+rirU +-> piv-p256 grR75w AlrhNdzcWFtr3YEDjlvx7B33qq6stwJ3Ururbbzd/r0D +ZM9yjVz+/CjSpCKUAQ+S8cxoP0YVyisqtTO/KuFtAKs +-> ~dh]=h/fDywxx>5k S#z1I 3H'a9^uVi9)Vte@Mx)6+e9/x㨣BlurԈβ4|g m' ȗE!=-kEaDQƺktѳys?>3z[aW'$v80sC b`L&\x7s>4]fw \ No newline at end of file