diff options
author | TheArcaneBrony <myrainbowdash949@gmail.com> | 2023-04-30 20:26:29 +0200 |
---|---|---|
committer | TheArcaneBrony <myrainbowdash949@gmail.com> | 2023-04-30 20:26:29 +0200 |
commit | 6cea1e1f55d01a581e87525ee946427895992f04 (patch) | |
tree | 4d8cc9783a7f567f44e1e4b60d2a6ef0f8a46afb | |
parent | Update synapse (diff) | |
download | Rory-Open-Architecture-6cea1e1f55d01a581e87525ee946427895992f04.tar.xz |
Add matrix support record
-rwxr-xr-x | host/Rory-nginx/hosts/rory.gay/root.nix | 26 |
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"; + } + } + } + }'; + ''; + } |