From 7e49323705ea5b6ca0e1e3a2c0c18ca4ccf592cd Mon Sep 17 00:00:00 2001 From: chayleaf Date: Sun, 24 Nov 2024 11:17:18 +0700 Subject: [PATCH] Revert "server: enable matrix-sliding-sync" This reverts commit 5ba73e92a8de5063d3334b49e6a83653c1b143ab. --- system/hosts/server/home.nix | 11 +---------- system/hosts/server/matrix.nix | 13 +------------ 2 files changed, 2 insertions(+), 22 deletions(-) diff --git a/system/hosts/server/home.nix b/system/hosts/server/home.nix index b600ca6..aed1be1 100644 --- a/system/hosts/server/home.nix +++ b/system/hosts/server/home.nix @@ -283,13 +283,7 @@ in { job_name = "local_medium_freq"; scrape_interval = "15m"; static_configs = [ { - targets = [ - "127.0.0.1:9548" - "127.0.0.1:9198" - (let cfg = config.services.matrix-appservice-discord.settings.metrics; - in "${lib.quoteListenAddr cfg.host}:${toString cfg.port}") - config.services.matrix-sliding-sync.settings.SYNCV3_PROM - ]; + targets = [ "127.0.0.1:9548" "127.0.0.1:9198" "127.0.0.1:9173" ]; labels.machine = "server"; } ]; } @@ -373,9 +367,6 @@ in { host = "127.0.0.1"; port = 9173; }; - services.matrix-sliding-sync = { - settings.SYNCV3_PROM = "[::]:8011"; - }; services.matrix-synapse.settings = { enable_metrics = true; federation_metrics_domains = [ "matrix.org" ]; diff --git a/system/hosts/server/matrix.nix b/system/hosts/server/matrix.nix index 73f19c1..83f2799 100644 --- a/system/hosts/server/matrix.nix +++ b/system/hosts/server/matrix.nix @@ -11,7 +11,6 @@ let matrixClientJson = { "m.homeserver".base_url = "https://matrix.${cfg.domainName}"; "m.identity_server".base_url = "https://vector.im"; - "org.matrix.msc3575.proxy".url = "https://matrix.${cfg.domainName}"; }; matrixServerConfigResponse = '' add_header Content-Type application/json; @@ -42,8 +41,7 @@ in { locations = { "= /.well-known/matrix/server".extraConfig = matrixServerConfigResponse; "= /.well-known/matrix/client".extraConfig = matrixClientConfigResponse; - "~ ^/(_matrix(?!/maubot)|_synapse/client|$)".proxyPass = "http://${lib.quoteListenAddr matrixAddr}:${toString matrixPort}"; - "~ ^/(client/|_matrix/client/unstable/org.matrix.msc3575/)".proxyPass = "http://${config.services.matrix-sliding-sync.settings.SYNCV3_BINDADDR}"; + "/".proxyPass = "http://${lib.quoteListenAddr matrixAddr}:${toString matrixPort}"; }; }; @@ -114,13 +112,4 @@ in { }]; }; }; - - services.matrix-sliding-sync = { - enable = true; - environmentFile = "/secrets/sliding-sync/env"; - settings = { - SYNCV3_BINDADDR = "[::]:8010"; - SYNCV3_SERVER = "https://matrix.pavluk.org"; - }; - }; }