Change caddy matrix well-known
This commit is contained in:
parent
2582cc4b63
commit
5925460443
2 changed files with 11 additions and 1 deletions
11
caddy.nix
11
caddy.nix
|
@ -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
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue