From 091f8cde16f770de5511c45e6bd17b096758ffea Mon Sep 17 00:00:00 2001 From: notohh Date: Mon, 16 Dec 2024 22:40:25 -0500 Subject: [PATCH] sakura: enable conduit --- hosts/sakura/services/conduit.nix | 12 +++++++++--- hosts/sakura/services/default.nix | 2 +- 2 files changed, 10 insertions(+), 4 deletions(-) diff --git a/hosts/sakura/services/conduit.nix b/hosts/sakura/services/conduit.nix index 7faef8c..c04d814 100644 --- a/hosts/sakura/services/conduit.nix +++ b/hosts/sakura/services/conduit.nix @@ -1,20 +1,26 @@ -_: { +{inputs, ...}: { networking.firewall.allowedTCPPorts = [6167 8448]; services.matrix-conduit = { enable = true; + package = inputs.conduwuit.packages.x86_64-linux.default; settings = { global = { address = "0.0.0.0"; server_name = "matrix.flake.sh"; - allow_registration = true; + allow_registration = false; allow_federation = true; allow_encryption = true; - log = "warn"; + log = "info"; max_concurrent_requests = 100; max_request_size = 20000000; database_backend = "rocksdb"; enable_lightning_bolt = false; trusted_servers = ["matrix.org"]; + url_preview_domain_contains_allowlist = ["*"]; + well_known = { + client = "https://matrix.flake.sh"; + server = "matrix.flake.sh:443"; + }; }; }; }; diff --git a/hosts/sakura/services/default.nix b/hosts/sakura/services/default.nix index 0870a1b..1696778 100644 --- a/hosts/sakura/services/default.nix +++ b/hosts/sakura/services/default.nix @@ -7,7 +7,7 @@ # ./hedgedoc.nix ./grafana.nix ./vaultwarden.nix - # ./conduit.nix + ./conduit.nix ./tailscale.nix ./rustlog.nix ./wastebin.nix