rico2: setup matrix well-knowns

This commit is contained in:
Adithya 2023-06-02 13:35:52 +05:30
parent 7a6eed3cd8
commit b4c6869608
Signed by: adtya
GPG key ID: 48FC9915FFD326D0

View file

@ -9,6 +9,18 @@
serverAliases = ["www.adtya.xyz"];
extraConfig = ''
reverse_proxy http://127.0.0.1:3000
handle /.well-known/matrix/server {
header Content-Type application/json
header Access-Control-Allow-Origin *
respond `{"m.server": "matrix.adtya.xyz:443"}`
}
handle /.well-known/matrix/client {
header Content-Type application/json
header Access-Control-Allow-Origin *
respond `{"m.homeserver": {"base_url": "https://matrix.adtya.xyz:443"}}`
}
'';
};
}