From bd8c318f1b5a9022bf517982af29959f3ec040fe Mon Sep 17 00:00:00 2001 From: Adithya Nair Date: Fri, 25 Oct 2024 22:57:34 +0530 Subject: [PATCH] wynne: disable sliding sync MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit https://github.com/NixOS/nixpkgs/pull/350095 😢 --- hosts/wynne/services/apps/acomputer.lol.nix | 3 +- .../wynne/services/apps/dendrite/default.nix | 31 +++++++------------ 2 files changed, 13 insertions(+), 21 deletions(-) diff --git a/hosts/wynne/services/apps/acomputer.lol.nix b/hosts/wynne/services/apps/acomputer.lol.nix index 95bdfc8..c991377 100644 --- a/hosts/wynne/services/apps/acomputer.lol.nix +++ b/hosts/wynne/services/apps/acomputer.lol.nix @@ -17,7 +17,8 @@ in handle /.well-known/matrix/client { header Content-Type application/json header Access-Control-Allow-Origin * - respond `{"m.homeserver": {"base_url": "https://matrix.${domainName}:443"}, "org.matrix.msc3575.proxy": {"url": "https://matrix.${domainName}"}}` + #respond `{"m.homeserver": {"base_url": "https://matrix.${domainName}:443"}, "org.matrix.msc3575.proxy": {"url": "https://matrix.${domainName}"}}` + respond `{"m.homeserver": {"base_url": "https://matrix.${domainName}:443"}}` } ''; }; diff --git a/hosts/wynne/services/apps/dendrite/default.nix b/hosts/wynne/services/apps/dendrite/default.nix index 5bc27f9..d3088b8 100644 --- a/hosts/wynne/services/apps/dendrite/default.nix +++ b/hosts/wynne/services/apps/dendrite/default.nix @@ -18,7 +18,7 @@ in logFormat = logFormat domainName; extraConfig = '' reverse_proxy /client/* 127.0.0.1:8009 - reverse_proxy /_matrix/client/unstable/org.matrix.msc3575/sync 127.0.0.1:8009 + # reverse_proxy /_matrix/client/unstable/org.matrix.msc3575/sync 127.0.0.1:8009 reverse_proxy /_matrix/* 127.0.0.1:8008 reverse_proxy /_dendrite/* 127.0.0.1:8008 reverse_proxy /_synapse/* 127.0.0.1:8008 @@ -40,28 +40,19 @@ in transport.useCompression = true; } ]; - matrix-sliding-sync = { - enable = true; - settings = { - SYNCV3_SERVER = "https://${domainName}"; - SYNCV3_BINDADDR = "127.0.0.1:8009"; - SYNCV3_DB = "postgresql://dendrite@localhost/dendrite?sslmode=disable"; - }; - environmentFile = config.sops.secrets."matrix/syncv3_secret".path; - }; + #matrix-sliding-sync = { + #enable = true; + #settings = { + # SYNCV3_SERVER = "https://${domainName}"; + # SYNCV3_BINDADDR = "127.0.0.1:8009"; + # SYNCV3_DB = "postgresql://dendrite@localhost/dendrite?sslmode=disable"; + #}; + #environmentFile = config.sops.secrets."matrix/syncv3_secret".path; + #}; }; systemd.services.dendrite = let - dendrite_package = pkgs.dendrite.overrideAttrs rec { - version = "0.13.8"; - src = pkgs.fetchFromGitHub { - owner = "matrix-org"; - repo = "dendrite"; - rev = "v${version}"; - hash = "sha256-zUpZdG2cdZ95L70qLG2HaUlD+G66XTi4f1V4+ZZAh30="; - }; - vendorHash = "sha256-rGOB1ikY3BgChvD1YZUF66g8P6gE29b/k9kxvHR0+WQ="; - }; + dendrite_package = pkgs.dendrite; in { description = "Dendrite Matrix homeserver";