💬 matrix: config updates

This commit is contained in:
James Walker 2021-10-09 21:04:39 -04:00
parent b2773346ad
commit 1a83e7c43d
Signed by: walkah
GPG Key ID: 3C127179D6086E93
2 changed files with 17 additions and 1 deletions

View File

@ -17,6 +17,7 @@
matrix-synapse = { matrix-synapse = {
enable = true; enable = true;
server_name = "walkah.chat"; server_name = "walkah.chat";
public_baseurl = "https://matrix.walkah.chat";
enable_metrics = true; enable_metrics = true;
enable_registration = false; enable_registration = false;
database_type = "psycopg2"; database_type = "psycopg2";
@ -32,6 +33,11 @@
names = [ "client" "federation" ]; names = [ "client" "federation" ];
}]; }];
}]; }];
account_threepid_delegates = {
email = "https://vector.im";
msisdn = "https://vector.im";
};
}; };
}; };
} }

View File

@ -16,9 +16,19 @@
locations."= /.well-known/matrix/server".extraConfig = locations."= /.well-known/matrix/server".extraConfig =
let server = { "m.server" = "matrix.walkah.chat:443"; }; let server = { "m.server" = "matrix.walkah.chat:443"; };
in '' in ''
add_header Content-Type application/json; default_type application/json;
add_header Access-Control-Allow-Origin *;
return 200 '${builtins.toJSON server}'; return 200 '${builtins.toJSON server}';
''; '';
locations."= /.well-known/matrix/client".extraConfig = let
client = {
"m.homeserver" = { "base_url" = "https://matrix.walkah.chat"; };
};
in ''
default_type application/json;
add_header Access-Control-Allow-Origin *;
return 200 '${builtins.toJSON client}';
'';
locations."/" = { root = pkgs.element-web; }; locations."/" = { root = pkgs.element-web; };
}; };
}; };