Change caddy matrix well-known

This commit is contained in:
batteredbunny 2024-03-28 13:03:11 +02:00 committed by batteredbunny
parent 2582cc4b63
commit 5925460443
2 changed files with 11 additions and 1 deletions

View file

@ -163,7 +163,16 @@ in {
hide .git
}
redir /.well-known/matrix/* https://matrix.catnip.ee/{uri}
handle /.well-known/matrix/client {
header Content-Type application/json
header Access-Control-Allow-Origin *
respond `{"m.homeserver":{"base_url":"https://matrix.catnip.ee/"},"org.matrix.msc3575.proxy":{"url":"https://sliding-sync.catnip.ee"}}`
}
handle /.well-known/matrix/server {
header Content-Type application/json
header Access-Control-Allow-Origin *
respond `{"m.server": "matrix.catnip.ee:443"}`
}
'';
"www.catnip.ee".extraConfig = ''
redir https://catnip.ee{uri} permanent

View file

@ -131,6 +131,7 @@ in {
WATCHTOWER_WARN_ON_HEAD_FAILURE = "never";
};
environmentFiles = [
# Contains WATCHTOWER_NOTIFICATION_URL
"/etc/secrets/watchtower.env"
];
cmd = [