possible fix

This commit is contained in:
Henry Hiles 2025-04-17 18:04:09 -04:00
parent e322553c02
commit 21decba502
Signed by: Henry-Hiles
SSH key fingerprint: SHA256:VKQUdS31Q90KvX7EkKMHMBpUspcmItAh86a+v7PGiIs
4 changed files with 44 additions and 39 deletions

View file

@ -7,6 +7,7 @@
lk-jwt-service = {
enable = true;
livekit = {
url = "ws://livekit.henryhiles.com/sfu";
keyFile = config.age.secrets."livekitKeys.age".path;
};
};
@ -16,25 +17,29 @@
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";
caddy.virtualHosts = {
"call.henryhiles.com".extraConfig = ''
root * ${pkgs.element-call}
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
livekit.livekit_service_url = "https://livekit.henryhiles.com";
}}` 200
try_files {path} {path}/ /index.html
file_server
}
'';
'';
"livekit.henryhiles.com".extraConfig = ''
handle_path /sfu/get {
reverse_proxy 127.0.0.1:8080
}
reverse_proxy 127.0.0.1:7880
'';
};
};
}