feat: add livekit
This commit is contained in:
parent
fb98563bb6
commit
eee6905637
9 changed files with 384 additions and 109 deletions
29
config/endpoints/livekit_local.nix
Normal file
29
config/endpoints/livekit_local.nix
Normal file
|
|
@ -0,0 +1,29 @@
|
|||
let
|
||||
serviceConfig = import ../services.nix;
|
||||
cfg = serviceConfig.livekit;
|
||||
in
|
||||
[
|
||||
{
|
||||
type = "proxy";
|
||||
listenPort = 443;
|
||||
domain = cfg.domain;
|
||||
endpoint = "/livekit/jwt/";
|
||||
force_ssl = true;
|
||||
content = {
|
||||
host = "127.0.0.1";
|
||||
port = cfg.jwt_port;
|
||||
};
|
||||
}
|
||||
{
|
||||
type = "proxy";
|
||||
listenPort = 443;
|
||||
domain = cfg.domain;
|
||||
endpoint = "/livekit/sfu/";
|
||||
force_ssl = true;
|
||||
content = {
|
||||
host = "127.0.0.1";
|
||||
port = cfg.port;
|
||||
websocket = true;
|
||||
};
|
||||
}
|
||||
]
|
||||
Loading…
Add table
Add a link
Reference in a new issue