finally have a working matrix set up
Some checks failed
Test action / kaas (push) Failing after 1s

This commit is contained in:
Chris Kruining 2025-09-11 10:53:17 +02:00
parent cc2f7bbea4
commit d4eff47049
No known key found for this signature in database
GPG key ID: EB894A3560CCCAD2

View file

@ -16,17 +16,25 @@ in
# virtualisation.podman.enable = true;
# };
networking.firewall.allowedTCPPorts = [ 4001 8448 ];
services = {
matrix-conduit = {
enable = true;
settings.global = {
address = "::1";
address = "::";
port = 4001;
database_backend = "rocksdb";
server_name = "matrix.kruining.eu";
server_name = "chris-matrix";
database_backend = "rocksdb";
# database_path = "/var/lib/matrix-conduit/";
allow_check_for_updates = false;
allow_registration = false;
enable_lightning_bolt = false;
};
};
@ -43,11 +51,25 @@ in
caddy = {
enable = true;
virtualHosts = {
${domain}.extraConfig = ''
# import auth-z
virtualHosts = let
inherit (builtins) toJSON;
# reverse_proxy http://127.0.0.1:5002
server = {
"m.server" = "${domain}:443";
};
client = {
"m.homeserver".base_url = "https://${domain}";
"m.identity_server".base_url = "https://auth.amarth.cloud";
};
in {
"${domain}".extraConfig = ''
header /.well-known/matrix/* Content-Type application/json
header /.well-known/matrix/* Access-Control-Allow-Origin *
respond /.well-known/matrix/server `${toJSON server}`
respond /.well-known/matrix/client `${toJSON client}`
reverse_proxy /_matrix/* http://::1:4001
# reverse_proxy /_synapse/client/* http://::1:4001
'';
};
};