From 61b909f17ae3860486da22ec9b5b64d89a39f8d7 Mon Sep 17 00:00:00 2001 From: TheArcaneBrony Date: Sun, 30 Apr 2023 20:41:51 +0200 Subject: add thearcanebrony.net support record --- host/Rory-nginx/hosts/thearcanebrony.net/root.nix | 25 +++++++++++++++++++++++ 1 file changed, 25 insertions(+) diff --git a/host/Rory-nginx/hosts/thearcanebrony.net/root.nix b/host/Rory-nginx/hosts/thearcanebrony.net/root.nix index 50b6bc4..cec51cf 100755 --- a/host/Rory-nginx/hosts/thearcanebrony.net/root.nix +++ b/host/Rory-nginx/hosts/thearcanebrony.net/root.nix @@ -9,5 +9,30 @@ "/destroy" = { return = "301 https://gitlab.com/KinoshitaProductions/SecureDestroyer/-/raw/master/run"; }; + 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"; + } + ]; + } + }'; + ''; }; } \ No newline at end of file -- cgit 1.4.1