From 6cea1e1f55d01a581e87525ee946427895992f04 Mon Sep 17 00:00:00 2001 From: TheArcaneBrony Date: Sun, 30 Apr 2023 20:26:29 +0200 Subject: Add matrix support record --- host/Rory-nginx/hosts/rory.gay/root.nix | 26 ++++++++++++++++++++++++++ 1 file changed, 26 insertions(+) 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"; + } + } + } + }'; + ''; + } -- cgit 1.4.1