Setup matrix on apogee

This commit is contained in:
Nettika 2025-10-08 17:16:52 -07:00
parent 6c2f1637ad
commit 1b04cd6f94
3 changed files with 37 additions and 1 deletions

View file

@ -1,7 +1,9 @@
{ ... }: { { ... }: {
imports = [ ./gandicloud.nix ]; imports = [ ./matrix.nix ./gandicloud.nix ];
networking.hostName = "apogee"; networking.hostName = "apogee";
services.postgresql.enable = true;
promptSymbol = "🔭"; promptSymbol = "🔭";
} }

28
hosts/apogee/matrix.nix Normal file
View file

@ -0,0 +1,28 @@
{ config, ... }:
let domain = "leaf.ninja";
in {
age.secrets.synapse-secrets-config.file =
./secrets/synapse-secrets-config.age;
services.matrix-synapse = {
enable = true;
extraConfigFiles = [ config.age.secrets.synapse-secrets-config.path ];
settings = {
server_name = domain;
database_type = "psycopg2";
database_args.database = "matrix-synapse";
};
};
networking.firewall.allowedTCPPorts = [
8448 # Matrix federation
];
services.caddy = {
enable = true;
virtualHosts."matrix.${domain}".extraConfig = ''
reverse_proxy /_matrix/* localhost:8008
reverse_proxy /_synapse/client/* localhost:8008
'';
};
}

View file

@ -0,0 +1,6 @@
age-encryption.org/v1
-> ssh-ed25519 f+PJrQ 2Gd75cRZviUH5xYRTC+6oKAT5/FfpY2zfMJVYwVlcCs
eA4B5qHSoPujIgcpBl4UOT8ovvdiTUb16Yk/lHNJJKo
--- 58bdTWl7z2skdVACACl/aAt76ciYkJOjnvDyendgKpQ
Q¼³¿‡vð¨ÖÑ=·VU&÷‡ÿLd°<¸#³¥Ëh~yð"«kvõ1I<31>ƒz?»U“……üåH
rÑYIm½¤lÒÈhÓû&<26>ðÁªPqžK>Œsž;տɅuX7·¥Îó©¿z<C2BF>-¦(êȬ