element call
This commit is contained in:
parent
0a9d28abdb
commit
e322553c02
5 changed files with 134 additions and 22 deletions
|
@ -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
|
||||
}
|
||||
'';
|
||||
};
|
||||
}
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue