feat: add known hosts

This commit is contained in:
Katharina Heidenreich 2026-04-04 16:51:21 +02:00
parent ecf10628c3
commit 3afb7d5cf4
3 changed files with 159 additions and 46 deletions

View file

@ -38,6 +38,30 @@ in
proxyWebsockets = true;
};
}
{
type = "inline";
domain = net.devices.remote_proxy.domain;
endpoint = "/.well-known/matrix/server";
force_ssl = true;
port = 443;
content = {
contentType = "application/json";
status = 200;
body = ''{"m.server":"${net.devices.remote_proxy.domain}:443"}'';
};
}
{
type = "inline";
domain = net.devices.remote_proxy.domain;
endpoint = "/.well-known/matrix/client";
force_ssl = true;
port = 443;
content = {
contentType = "application/json";
status = 200;
body = ''{"m.homeserver":{"base_url":"https://${net.devices.remote_proxy.domain}"}}'';
};
}
{
type = "proxy";
domain = "torrent.${net.local_domain}";