blob: db24c899b858d4400678fe48a7b766b9179d1f6c (
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
28
29
30
31
32
33
34
35
|
{ lib, ... }:
{
name = "tranquil-pds";
nodes.machine =
{ pkgs, ... }:
{
services.tranquil-pds = {
enable = true;
database.createLocally = true;
settings = {
server = {
hostname = "pds";
port = 8080;
};
secrets = {
allow_insecure = true;
jwt_secret = "test-jwt-secret-must-be-32-chars-long";
dpop_secret = "test-dpop-secret-must-be-32-chars-long";
master_key = "test-master-key-must-be-32-chars-long";
};
};
};
};
testScript = ''
machine.wait_for_unit("tranquil-pds.service")
machine.wait_for_open_port(8080)
machine.succeed("curl --fail http://localhost:8080")
'';
meta.maintainers = with lib.maintainers; [ nelind ];
}
|