mirror of
https://github.com/NixOS/nixpkgs.git
synced 2025-06-10 19:55:41 +03:00
26 lines
593 B
Nix
26 lines
593 B
Nix
{
|
|
pkgs,
|
|
lib,
|
|
...
|
|
}:
|
|
{
|
|
name = "lk-jwt-service";
|
|
meta.maintainers = [ lib.maintainers.quadradical ];
|
|
|
|
nodes.machine = {
|
|
services.lk-jwt-service = {
|
|
enable = true;
|
|
keyFile = pkgs.writers.writeYAML "keys.yaml" {
|
|
key = "f6lQGaHtM5HfgZjIcec3cOCRfiDqIine4CpZZnqdT5cE";
|
|
};
|
|
livekitUrl = "wss://127.0.0.1:8100";
|
|
port = 8000;
|
|
};
|
|
};
|
|
|
|
testScript = ''
|
|
machine.wait_for_unit("lk-jwt-service.service")
|
|
machine.wait_for_open_port(8000)
|
|
machine.succeed('curl 127.0.0.1:8000/sfu/get -sLX POST -w "%{http_code}" | grep -q "^400"')
|
|
'';
|
|
}
|