fix/add-matrix-wellknown #52

Merged
b12f merged 2 commits from fix/add-matrix-wellknown into main 2023-11-08 15:33:22 +00:00
Showing only changes of commit b085c2e2b2 - Show all commits

View file

@ -6,7 +6,24 @@ let
add_header X-XSS-Protection "1; mode=block";
'';
clientConfig = import ./matrix/element-client-config.nix;
wellKnownClient."m.homeserver".base_url = "https://matrix.pub.solar";
wellKnownClient = {
"m.homeserver".base_url = "https://matrix.pub.solar";
"m.identity_server".base_url = "https://matrix.pub.solar";
teutat3s marked this conversation as resolved
Review

This breaks federation for the testing domain that @axeman is working on. Can we have an extra nginx vhost for testing and the current matrix homeserver?

This breaks federation for the testing domain that @axeman is working on. Can we have an extra nginx vhost for testing and the current matrix homeserver?
Review

I don't see this currently actively being worked on, so I'd rather that gets added/changed in a separate Pr so we get this merged

I don't see this currently actively being worked on, so I'd rather that gets added/changed in a separate Pr so we get this merged
Review

Okay then @axeman will have to add this back 👍

Okay then @axeman will have to add this back 👍
"im.vector.riot.e2ee".default = true;
"io.element.e2ee" = {
default = true;
secure_backup_required = false;
secure_backup_setup_methods = [];
};
"m.integrations" = {
managers = [
{
api_url = "https://dimension.pub.solar/api/v1/scalar";
ui_url = "https://dimension.pub.solar/element";
}
];
};
};
wellKnownServer."m.server" = "matrix.pub.solar:8448";
mkWellKnown = data: ''
add_header Content-Type application/json;
@ -20,10 +37,19 @@ let
in
{
services.nginx.virtualHosts = {
#####################################
# This is already in production use #
#####################################
"pub.solar" = {
locations = wellKnownLocations;
};
#######################################
# Stuff below is still in betatesting #
#######################################
"chat.test.pub.solar" = {
forceSSL = true;
enableACME = true;