move element call
This commit is contained in:
parent
ecb0105d0b
commit
72aff4b9d7
2 changed files with 0 additions and 1 deletions
53
clients/quadraticserver/matrix/call.nix
Normal file
53
clients/quadraticserver/matrix/call.nix
Normal file
|
@ -0,0 +1,53 @@
|
|||
{
|
||||
lib,
|
||||
pkgs,
|
||||
config,
|
||||
...
|
||||
}: {
|
||||
systemd.services = {
|
||||
livekit.serviceConfig.Restart = lib.mkForce "always";
|
||||
lk-jwt-service.serviceConfig.Restart = lib.mkForce "always";
|
||||
};
|
||||
|
||||
services = let
|
||||
domain = "call.federated.nexus";
|
||||
in {
|
||||
livekit = {
|
||||
enable = true;
|
||||
keyFile = config.age.secrets."livekitKeys.age".path;
|
||||
};
|
||||
|
||||
lk-jwt-service = {
|
||||
enable = true;
|
||||
livekitUrl = "wss://${domain}/livekit/sfu";
|
||||
keyFile = config.services.livekit.keyFile;
|
||||
};
|
||||
|
||||
caddy.virtualHosts."${domain}".extraConfig = ''
|
||||
root * ${pkgs.element-call}
|
||||
route {
|
||||
respond /config.json `${builtins.toJSON {
|
||||
default_server_config = {
|
||||
"m.homeserver" = {
|
||||
"base_url" = config.services.grapevine.settings.server_discovery.client.base_url;
|
||||
"server_name" = config.services.grapevine.settings.server_name;
|
||||
};
|
||||
};
|
||||
livekit.livekit_service_url = "https://${domain}/livekit";
|
||||
}}` 200
|
||||
|
||||
handle /livekit/sfu/get {
|
||||
uri strip_prefix /livekit
|
||||
reverse_proxy 127.0.0.1:8080
|
||||
}
|
||||
|
||||
handle_path /livekit/sfu* {
|
||||
reverse_proxy 127.0.0.1:7880
|
||||
}
|
||||
|
||||
try_files {path} {path}/ /index.html
|
||||
file_server
|
||||
}
|
||||
'';
|
||||
};
|
||||
}
|
|
@ -5,7 +5,6 @@
|
|||
defaultHomeserver = 0;
|
||||
homeserverList = ["federated.nexus"];
|
||||
allowCustomHomeservers = false;
|
||||
elementCallUrl = "https://call.federated.nexus";
|
||||
};
|
||||
cinny-unwrapped = pkgs.cinny-unwrapped.overrideAttrs (old: rec {
|
||||
src = pkgs.fetchFromGitHub {
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue