My Nix Configuration

[services.conduit] Delegate .well-known/matrix/ to conduit

Changed files
+14 -3
systems
x86_64-linux
marvin
services
prefect
services
+13 -3
systems/x86_64-linux/marvin/services/matrix.nix
···
inputs,
lib,
...
-
}: let
+
}:
+
let
d = lib.py.data.services.matrix-server;
-
in {
+
in
+
{
services.matrix-conduit = {
enable = true;
package = inputs.conduit.packages.${pkgs.system}.default;
···
allow_registration = false;
allow_federation = true;
allow_check_for_updates = false;
-
trusted_servers = ["matrix.org" "vector.im" "catgirl.cloud"];
+
trusted_servers = [
+
"matrix.org"
+
"vector.im"
+
"catgirl.cloud"
+
];
address = "0.0.0.0";
+
well_known = {
+
client = "https://${d.extUrl}";
+
server = "${d.extUrl}:443";
+
};
};
};
}
+1
systems/x86_64-linux/prefect/services/Caddyfile
···
redir /carddav https://cloud.pyrox.dev/.well-known/carddav temporary
redir /caldav https://cloud.pyrox.dev/.well-known/caldav temporary
header /matrix/* Access-Control-Allow-Origin *
+
reverse_proxy /matrix/* http://100.123.15.72:6922
header /openpgpkey/* Access-Control-Allow-Origin *
header /openpgpkey/hu/* application/octet-stream
respond /openpgpkey/policy 200