about summary refs log tree commit diff
path: root/modules
diff options
context:
space:
mode:
authorsefidel <contact@sefidel.net>2024-01-11 17:41:00 +0900
committersefidel <contact@sefidel.net>2024-01-12 00:18:46 +0900
commitca56a5bb7342666ac6edbbc82b38d60952175ab6 (patch)
tree2d451eb8354159e73c2ae0ac7f17d5dd71238d02 /modules
parent26b33c01c240a5436c418b06e76da76140f7df71 (diff)
downloadinfra-ca56a5bb7342666ac6edbbc82b38d60952175ab6.tar.gz
infra-ca56a5bb7342666ac6edbbc82b38d60952175ab6.zip
chore(modules/matrix-homeserver): services.matrix-synapse.sliding-sync -> services.matrix-sliding-sync
Diffstat (limited to 'modules')
-rw-r--r--modules/services/matrix-homeserver.nix18
1 files changed, 9 insertions, 9 deletions
diff --git a/modules/services/matrix-homeserver.nix b/modules/services/matrix-homeserver.nix
index 6687e1d..36d6dbc 100644
--- a/modules/services/matrix-homeserver.nix
+++ b/modules/services/matrix-homeserver.nix
@@ -95,16 +95,16 @@ in
           "turn:${cfg.turn.domain}?transport=tcp"
         ];
       };
+    };
 
-      sliding-sync = {
-        enable = true;
-        createDatabase = true;
-        settings = {
-          SYNCV3_SERVER = "https://${cfg.realHost}";
-          SYNCV3_BINDADDR = "[::1]:${toString slidingSyncPort}";
-        };
-        environmentFile = cfg.secrets.sliding-sync-secret;
+    services.matrix-sliding-sync = {
+      enable = true;
+      createDatabase = true;
+      settings = {
+        SYNCV3_SERVER = "https://${cfg.realHost}";
+        SYNCV3_BINDADDR = "[::1]:${toString slidingSyncPort}";
       };
+      environmentFile = cfg.secrets.sliding-sync-secret;
     };
 
     services.prometheus.scrapeConfigs = [
@@ -182,7 +182,7 @@ in
     services.nginx.virtualHosts.${cfg.slidingSyncHost} = {
       forceSSL = true;
       useACMEHost = cfg.domain;
-      locations."/".proxyPass = "http://${config.services.matrix-synapse.sliding-sync.settings.SYNCV3_BINDADDR}";
+      locations."/".proxyPass = "http://${config.services.matrix-sliding-sync.settings.SYNCV3_BINDADDR}";
     };
 
     networking.firewall.allowedTCPPorts = [ 443 8448 ];