46 lines
1.1 KiB
Nix
46 lines
1.1 KiB
Nix
{
|
|
services.matrix-continuwuity = {
|
|
enable = true;
|
|
settings = {
|
|
admin = {
|
|
enable = true;
|
|
};
|
|
global = {
|
|
address = [ "0.0.0.0" ];
|
|
server_name = "k3t.dev";
|
|
trusted_servers = [
|
|
"matrix.org"
|
|
"constellatory.net"
|
|
"unredacted.org"
|
|
"tchncs.de"
|
|
];
|
|
};
|
|
};
|
|
};
|
|
services.nginx.virtualHosts = {
|
|
"k3t.dev".locations."/.well-known/matrix/client" = {
|
|
return = ''
|
|
200 '{"m.homeserver":{"base_url":"https://k3t.dev"},"m.identity_server":{"base_url":"https://vector.im"}}'
|
|
'';
|
|
extraConfig = ''
|
|
default_type application/json;
|
|
'';
|
|
};
|
|
"k3t.dev".locations."/.well-known/matrix/server" = {
|
|
return = ''
|
|
200 '{"m.server": "k3t.dev:443"}'
|
|
'';
|
|
extraConfig = ''
|
|
default_type application/json;
|
|
'';
|
|
};
|
|
"k3t.dev".locations."/_matrix/" = {
|
|
proxyPass = "http://127.0.0.1:6167";
|
|
proxyWebsockets = true;
|
|
};
|
|
"k3t.dev".locations."/_continuwuity/" = {
|
|
proxyPass = "http://127.0.0.1:6167";
|
|
proxyWebsockets = true;
|
|
};
|
|
};
|
|
} |