add matrix-sliding-sync

Close #17
This commit is contained in:
2023-07-09 19:58:59 -04:00
parent 74e75de168
commit 4decbc5f3c
4 changed files with 80 additions and 4 deletions

View File

@ -1,6 +1,10 @@
{ config, pkgs, ... }:
{
imports = [
../../services/matrix-sliding-sync.nix
];
environment.systemPackages = with pkgs; [
matrix-synapse-tools.synadm
];
@ -17,7 +21,7 @@
LC_CTYPE = "C";
'';
};
postgresqlBackup.databases = [ "matrix" ];
postgresqlBackup.databases = [ "matrix" "matrix-syncv3" ];
matrix-synapse = {
enable = true;
@ -48,6 +52,8 @@
config.sops.secrets.matrix-registration-secret.path
];
};
matrix-syncv3.enable = true;
};
sops.secrets.matrix-registration-secret = {

View File

@ -10,6 +10,12 @@
locations."/" = { proxyPass = "http://100.111.208.75:8008"; };
};
"syncv3.walkah.chat" = {
forceSSL = true;
enableACME = true;
locations."/" = { proxyPass = "http://100.111.208.75:8088"; };
};
"walkah.chat" = {
forceSSL = true;
enableACME = true;
@ -25,6 +31,7 @@
let
client = {
"m.homeserver" = { "base_url" = "https://matrix.walkah.chat"; };
"org.matrix.msc3575.proxy" = { "url" = "https://syncv3.walkah.chat"; };
};
in
''