fix: matrix delegation via well-known for test domain
All checks were successful
Flake checks / Check (pull_request) Successful in 17m14s

We use pub.solar as our server_name and matrix.pub.solar:8448 for matrix
federation traffic. The well-known record served at
https://pub.solar/.well-known/matrix/server should point to
matrix.pub.solar:8448. The same is true for test.pub.solar and
matrix.test.pub.solar:8448.

https://matrix-org.github.io/synapse/latest/delegate.html
This commit is contained in:
teutat3s 2023-11-18 17:34:33 +01:00
parent f213f93085
commit c88a0608f6
Signed by: teutat3s
GPG key ID: 4FA1D3FA524F22C1

View file

@ -25,7 +25,7 @@ let
]; ];
}; };
}; };
wellKnownServer = domain: { "m.server" = "${domain}:8448"; }; wellKnownServer = domain: { "m.server" = "matrix.${domain}:8448"; };
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 *;
@ -50,6 +50,14 @@ in
####################################### #######################################
# Stuff below is still in betatesting # # Stuff below is still in betatesting #
####################################### #######################################
"test.pub.solar" = {
root = "/dev/null";
forceSSL = lib.mkDefault true;
enableACME = lib.mkDefault true;
locations = (wellKnownLocations "test.pub.solar");
};
"chat.test.pub.solar" = { "chat.test.pub.solar" = {
forceSSL = true; forceSSL = true;
@ -70,7 +78,7 @@ in
gzip on; gzip on;
gzip_types text/plain application/json; gzip_types text/plain application/json;
''; '';
locations = (wellKnownLocations "test.pub.solar") // { locations = {
# TODO: Configure metrics # TODO: Configure metrics
# "/metrics" = { # "/metrics" = {
# }; # };