feat: add well-known for matrix support contacts
All checks were successful
Flake checks / Check (pull_request) Successful in 16m52s
All checks were successful
Flake checks / Check (pull_request) Successful in 16m52s
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