💬 matrix: config updates
This commit is contained in:
parent
b2773346ad
commit
1a83e7c43d
@ -17,6 +17,7 @@
|
||||
matrix-synapse = {
|
||||
enable = true;
|
||||
server_name = "walkah.chat";
|
||||
public_baseurl = "https://matrix.walkah.chat";
|
||||
enable_metrics = true;
|
||||
enable_registration = false;
|
||||
database_type = "psycopg2";
|
||||
@ -32,6 +33,11 @@
|
||||
names = [ "client" "federation" ];
|
||||
}];
|
||||
}];
|
||||
|
||||
account_threepid_delegates = {
|
||||
email = "https://vector.im";
|
||||
msisdn = "https://vector.im";
|
||||
};
|
||||
};
|
||||
};
|
||||
}
|
||||
|
@ -16,9 +16,19 @@
|
||||
locations."= /.well-known/matrix/server".extraConfig =
|
||||
let server = { "m.server" = "matrix.walkah.chat:443"; };
|
||||
in ''
|
||||
add_header Content-Type application/json;
|
||||
default_type application/json;
|
||||
add_header Access-Control-Allow-Origin *;
|
||||
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; };
|
||||
};
|
||||
};
|
||||
|
Loading…
x
Reference in New Issue
Block a user