forked from pub-solar/infra
feat: add well-known for matrix support contacts
This commit is contained in:
parent
ccbfb211fd
commit
9f633582d1
|
@ -26,6 +26,26 @@ let
|
||||||
};
|
};
|
||||||
};
|
};
|
||||||
wellKnownServer = domain: { "m.server" = "matrix.${domain}:8448"; };
|
wellKnownServer = domain: { "m.server" = "matrix.${domain}:8448"; };
|
||||||
|
wellKnownSupport = {
|
||||||
|
contacts = [
|
||||||
|
{
|
||||||
|
email_address = "crew@pub.solar";
|
||||||
|
matrix_id = "@b12f:pub.solar";
|
||||||
|
role = "m.role.admin";
|
||||||
|
}
|
||||||
|
{
|
||||||
|
email_address = "crew@pub.solar";
|
||||||
|
matrix_id = "@hensoko:pub.solar";
|
||||||
|
role = "m.role.admin";
|
||||||
|
}
|
||||||
|
{
|
||||||
|
email_address = "crew@pub.solar";
|
||||||
|
matrix_id = "@teutat3s:pub.solar";
|
||||||
|
role = "m.role.admin";
|
||||||
|
}
|
||||||
|
];
|
||||||
|
support_page = "https://pub.solar/about";
|
||||||
|
};
|
||||||
mkWellKnown = data: ''
|
mkWellKnown = data: ''
|
||||||
add_header Content-Type application/json;
|
add_header Content-Type application/json;
|
||||||
add_header Access-Control-Allow-Origin *;
|
add_header Access-Control-Allow-Origin *;
|
||||||
|
@ -34,6 +54,7 @@ let
|
||||||
wellKnownLocations = domain: {
|
wellKnownLocations = domain: {
|
||||||
"= /.well-known/matrix/server".extraConfig = mkWellKnown (wellKnownServer domain);
|
"= /.well-known/matrix/server".extraConfig = mkWellKnown (wellKnownServer domain);
|
||||||
"= /.well-known/matrix/client".extraConfig = mkWellKnown (wellKnownClient domain);
|
"= /.well-known/matrix/client".extraConfig = mkWellKnown (wellKnownClient domain);
|
||||||
|
"= /.well-known/matrix/support".extraConfig = mkWellKnown wellKnownSupport;
|
||||||
};
|
};
|
||||||
in
|
in
|
||||||
{
|
{
|
||||||
|
|
Loading…
Reference in a new issue