mirror of
https://git.sr.ht/~rouven/nixos-config
synced 2024-11-14 21:03:10 +01:00
matrix: enable element-web
This commit is contained in:
parent
ea1f8c7bd1
commit
e7a4594300
|
@ -1,6 +1,12 @@
|
|||
{ config, pkgs, ... }:
|
||||
let
|
||||
domain = "matrix.${config.networking.domain}";
|
||||
domainClient = "chat.${config.networking.domain}";
|
||||
clientConfig = {
|
||||
"m.homeserver" = {
|
||||
base_url = "https://${domain}:443";
|
||||
};
|
||||
};
|
||||
in
|
||||
{
|
||||
|
||||
|
@ -73,6 +79,23 @@ in
|
|||
locations."~ ^/(client/|_matrix/client/unstable/org.matrix.msc3575/sync)".proxyPass = "http://localhost:8009";
|
||||
# locations."/_synapse/client".proxyPass = "http://[::1]:8008";
|
||||
};
|
||||
|
||||
|
||||
# element
|
||||
"${domainClient}" = {
|
||||
enableACME = true;
|
||||
forceSSL = true;
|
||||
|
||||
root = pkgs.element-web.override {
|
||||
conf = {
|
||||
default_server_config = {
|
||||
inherit (clientConfig) "m.homeserver";
|
||||
"m.identity_server".base_url = "";
|
||||
};
|
||||
disable_3pid_login = true;
|
||||
};
|
||||
};
|
||||
};
|
||||
};
|
||||
};
|
||||
};
|
||||
|
|
Loading…
Reference in a new issue