From c9671121dd7d1f8c098b32488fd5f53489a701af Mon Sep 17 00:00:00 2001 From: Greg Hellings Date: Fri, 7 Aug 2026 17:19:45 -0500 Subject: [PATCH] fix: restore matrix well-known server --- hosts/unstable/linode/default.nix | 17 +++++++++++++++++ 1 file changed, 17 insertions(+) diff --git a/hosts/unstable/linode/default.nix b/hosts/unstable/linode/default.nix index 3b67759..b4e1cd6 100644 --- a/hosts/unstable/linode/default.nix +++ b/hosts/unstable/linode/default.nix @@ -11,6 +11,21 @@ let homepage = "127.0.0.1:30080"; nextcloudPort = 8080; sshPort = 2222; + matrixServer = pkgs.writeText "matrix_server" ( + builtins.toJSON { + "m.server" = "matrix.thehellings.com:443"; + } + ); + matrixClient = pkgs.writeText "matrix_client" ( + builtins.toJSON { + "m.homeserver" = { + base_url = "https://matrix.thehellings.com"; + }; + "m.identity_server" = { + base_url = "https://vector.im"; + }; + } + ); in { imports = [ @@ -224,6 +239,8 @@ in option accept-unsafe-violations-in-http-response retries 3 option forwardfor + http-request return status 200 content-type "application/json" file ${matrixClient} hdr "cache-control" "no-cache" if { path /.well-known/matrix/client } + http-request return status 200 content-type "application/json" file ${matrixServer} hdr "cache-control" "no-cache" if { path /.well-known/matrix/server } server web-container ${homepage} backend next