blob: 1fd06d4e7f9274a4c9948b504f6f743bba682810 (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
|
{ lib, ... }:
{
name = "kener";
meta.maintainers = with lib.maintainers; [ albertlarsan68 ];
containers.machine =
{ pkgs, ... }:
{
services.kener = {
enable = true;
environmentFile = pkgs.writeText "kener-env" ''
KENER_SECRET_KEY=kener_secret_key_do_not_use
'';
settings = {
ORIGIN = "http://localhost:3001";
};
};
};
testScript = ''
machine.start()
machine.wait_for_unit("kener.service")
machine.wait_for_open_port(3001)
machine.wait_until_succeeds("curl --fail http://localhost:3001/healthcheck?strict=1")
'';
}
|