remove useless line thats confusing
This commit is contained in:
parent
6287bbb9a8
commit
086b008d84
1 changed files with 24 additions and 27 deletions
|
|
@ -13,20 +13,26 @@
|
|||
services =
|
||||
let
|
||||
domain = "call.federated.nexus";
|
||||
livekitDomain = "livekit.call.federated.nexus";
|
||||
lkJwtServiceDomain = "lk-jwt.call.federated.nexus";
|
||||
in
|
||||
{
|
||||
livekit = {
|
||||
enable = true;
|
||||
keyFile = config.age.secrets."livekitKeys.age".path;
|
||||
settings.room.auto_create = false;
|
||||
};
|
||||
|
||||
lk-jwt-service = {
|
||||
enable = true;
|
||||
livekitUrl = "wss://${domain}/livekit/sfu";
|
||||
livekitUrl = "wss://${livekitDomain}";
|
||||
keyFile = config.services.livekit.keyFile;
|
||||
};
|
||||
|
||||
caddy.virtualHosts."${domain}".extraConfig = ''
|
||||
caddy.virtualHosts = {
|
||||
"${livekitDomain}".extraConfig = "reverse_proxy 127.0.0.1:7880";
|
||||
"${lkJwtServiceDomain}".extraConfig = "reverse_proxy 127.0.0.1:8080";
|
||||
"${domain}".extraConfig = ''
|
||||
root * ${pkgs.element-call}
|
||||
route {
|
||||
respond /config.json `${
|
||||
|
|
@ -37,22 +43,13 @@
|
|||
"server_name" = config.quad.matrix.domain;
|
||||
};
|
||||
};
|
||||
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
|
||||
}
|
||||
'';
|
||||
};
|
||||
};
|
||||
}
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue