Enable matrix-sliding-sync
All checks were successful
Check flake / build-amd64-linux (push) Successful in 2m51s

This commit is contained in:
Jordan Holt 2024-11-04 15:12:51 +00:00
parent 20e5602a47
commit 0316e1c845
Signed by: jordan
GPG Key ID: B8CFFF61F1CCF520
2 changed files with 2 additions and 1 deletions

View File

@ -104,6 +104,7 @@
whatsapp = true; whatsapp = true;
}; };
usePostgresql = databases.postgresql.enable; usePostgresql = databases.postgresql.enable;
slidingSync.enable = true;
}; };
nginx.enable = true; nginx.enable = true;
photoprism.enable = true; photoprism.enable = true;

View File

@ -136,7 +136,7 @@ in {
"/_synapse/client".proxyPass = "http://localhost:8008"; "/_synapse/client".proxyPass = "http://localhost:8008";
"~ ^/(client/|_matrix/client/unstable/org.matrix.msc3575/sync)" = lib.mkIf cfg.slidingSync.enable { "~ ^/(client/|_matrix/client/unstable/org.matrix.msc3575/sync)" = lib.mkIf cfg.slidingSync.enable {
priority = 100; priority = 100;
proxyPass = "http://localhost:8009"; proxyPass = "http://${config.services.matrix-sliding-sync.settings.SYNCV3_BINDADDR}";
extraConfig = '' extraConfig = ''
proxy_set_header X-Forwarded-For $remote_addr; proxy_set_header X-Forwarded-For $remote_addr;
''; '';