element call

This commit is contained in:
Henry Hiles 2025-04-14 22:47:51 -04:00
parent 0a9d28abdb
commit e322553c02
Signed by: Henry-Hiles
SSH key fingerprint: SHA256:VKQUdS31Q90KvX7EkKMHMBpUspcmItAh86a+v7PGiIs
5 changed files with 134 additions and 22 deletions

View file

@ -1,6 +1,40 @@
{pkgs, ...}: {
services.caddy.virtualHosts."call.henryhiles.com". extraConfig = ''
root * ${pkgs.element-call}
file_server
'';
{
pkgs,
config,
...
}: {
services = {
lk-jwt-service = {
enable = true;
livekit = {
keyFile = config.age.secrets."livekitKeys.age".path;
};
};
livekit = {
enable = true;
keyFile = config.age.secrets."livekitKeys.age".path;
};
caddy.virtualHosts."call.henryhiles.com".extraConfig = ''
root * ${pkgs.element-call}
route {
respond /config.json `${builtins.toJSON {
default_server_config = {
"m.homeserver" = {
"base_url" = "https://matrix.henryhiles.com";
"server_name" = "henryhiles.com";
};
};
livekit.livekit_service_url = "https://call.henryhiles.com";
}}` 200
reverse_proxy /livekit/sfu 127.0.0.1:7880
reverse_proxy /livekit/jwt 127.0.0.1:8080
try_files {path} {path}/ /index.html
file_server
}
'';
};
}