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; }; } ]