ctucx.git: nixfiles

ctucx' nixfiles

commit 1513a5e435496bee4d7e9841116dec7067a85a93
parent 759678c023354b10b13a6be7a4dabcfeacc52c21
Author: Leah (ctucx) <git@ctu.cx>
Date: Mon, 15 May 2023 18:04:36 +0200

machines/trabbi/matrix-synapse: improve syntax
1 file changed, 5 insertions(+), 5 deletions(-)
diff --git a/machines/trabbi/matrix-synapse.nix b/machines/trabbi/matrix-synapse.nix
@@ -67,8 +67,8 @@
     matrix-sliding-sync-proxy = {
       enable = true;
       dbName = "syncv3";
-      bind = ":8009";
-      server = "http://localhost:8008";
+      bind = "127.0.0.1:8009";
+      server = "http://127.0.0.1:8008";
       package = pkgs.matrix-sliding-sync;
     };
 

@@ -82,11 +82,11 @@
           kTLS       = true;
           locations."/.well-known/matrix/server".extraConfig = ''
             add_header Content-Type application/json;
-            return 200 "{\"m.server\": \"matrix.ctu.cx:443\"}";
+            return 200 '{"m.server": "matrix.ctu.cx:443"}';
           '';
           locations."/.well-known/matrix/client".extraConfig = ''
             add_header Content-Type application/json;
-            return 200 "{\"m.homeserver\": {\"base_url\": \"https://matrix.ctu.cx\"}, \"org.matrix.msc3575.proxy\": {\"url\": \"https://matrix.ctu.cx\"}}";
+            return 200 '{"m.homeserver": {"base_url": "https://matrix.ctu.cx"}, "org.matrix.msc3575.proxy": {"url": "https://matrix.ctu.cx"}}';
           '';
         };
 

@@ -96,7 +96,7 @@
           kTLS       = true;
           locations  = {
             "/_matrix".proxyPass = "http://127.0.0.1:8008";
-            "/_matrix/client/unstable/org.matrix.msc3575/".proxyPass = "http://localhost:8009/_matrix/client/unstable/org.matrix.msc3575/";
+            "/_matrix/client/unstable/org.matrix.msc3575/".proxyPass = "http://127.0.0.1:8009/_matrix/client/unstable/org.matrix.msc3575/";
 #            "/_synapse".proxyPass = "http://127.0.0.1:8008";
 #            "/admin/".alias = "${pkgs.synapse-admin}/";
             "/".root             = pkgs.cinny.override {