summary refs log tree commit diff
diff options
context:
space:
mode:
authorTheArcaneBrony <myrainbowdash949@gmail.com>2023-04-30 20:26:29 +0200
committerTheArcaneBrony <myrainbowdash949@gmail.com>2023-04-30 20:26:29 +0200
commit6cea1e1f55d01a581e87525ee946427895992f04 (patch)
tree4d8cc9783a7f567f44e1e4b60d2a6ef0f8a46afb
parentUpdate synapse (diff)
downloadRory-Open-Architecture-6cea1e1f55d01a581e87525ee946427895992f04.tar.xz
Add matrix support record
-rwxr-xr-xhost/Rory-nginx/hosts/rory.gay/root.nix26
1 files changed, 26 insertions, 0 deletions
diff --git a/host/Rory-nginx/hosts/rory.gay/root.nix b/host/Rory-nginx/hosts/rory.gay/root.nix
index 8fb3837..96aacba 100755
--- a/host/Rory-nginx/hosts/rory.gay/root.nix
+++ b/host/Rory-nginx/hosts/rory.gay/root.nix
@@ -21,4 +21,30 @@
     }
     }';
   ''; 
+  locations."= /.well-known/matrix/support".extraConfig = ''
+    add_header Content-Type application/json;
+    add_header Access-Control-Allow-Origin *;
+    return 200 '${builtins.toJSON {
+      admins = {
+        {
+          matrix_id = "@emma:rory.gay";
+          role = "admin";
+        },
+	      {
+          matrix_id = "@alicia:rory.gay";
+          role = "admin";
+        },
+	      {
+          matrix_id = "@root:rory.gay";
+          role = "admin";
+        },
+      	{
+          matrix_id = "@rory:rory.gay";
+          role = "admin";
+        }
+      }
+    }
+    }';
+  ''; 
+  
 }