proxy/config/endpoints/livekit_local.nix
2026-04-08 11:42:43 +02:00

51 lines
899 B
Nix

let
serviceConfig = import ../services.nix;
cfg = serviceConfig.livekit;
in
[
{
type = "proxy";
listenPort = 443;
domain = cfg.domain;
endpoint = "/sfu/get";
force_ssl = true;
content = {
host = "127.0.0.1";
port = cfg.jwt_port;
};
}
{
type = "proxy";
listenPort = 443;
domain = cfg.domain;
endpoint = "/healthz";
force_ssl = true;
content = {
host = "127.0.0.1";
port = cfg.jwt_port;
};
}
{
type = "proxy";
listenPort = 443;
domain = cfg.domain;
endpoint = "/get_token";
force_ssl = true;
content = {
host = "127.0.0.1";
port = cfg.jwt_port;
};
}
{
type = "proxy";
listenPort = 443;
domain = cfg.domain;
endpoint = "/";
force_ssl = true;
content = {
host = "127.0.0.1";
port = cfg.port;
websocket = true;
};
}
]