File tree 3 files changed +26
-1
lines changed
pkgs/by-name/lk/lk-jwt-service
3 files changed +26
-1
lines changed Original file line number Diff line number Diff line change 737
737
listmonk = handleTestOn [ "x86_64-linux" "aarch64-linux" ] ./listmonk.nix { } ;
738
738
litellm = runTest ./litellm.nix ;
739
739
litestream = handleTest ./litestream.nix { } ;
740
+ lk-jwt-service = runTest ./matrix/lk-jswt-service.nix ;
740
741
lldap = handleTest ./lldap.nix { } ;
741
742
localsend = handleTest ./localsend.nix { } ;
742
743
locate = handleTest ./locate.nix { } ;
Original file line number Diff line number Diff line change
1
+ {
2
+ pkgs ,
3
+ lib ,
4
+ ...
5
+ } : {
6
+ name = "lk-jwt-service" ;
7
+ meta . maintainers = [ lib . maintainers . quadradical ] ;
8
+
9
+ nodes . machine = {
10
+ services . lk-jwt-service = {
11
+ enable = true ;
12
+ keyFile = pkgs . writers . writeYAML "keys.yaml" { key = "f6lQGaHtM5HfgZjIcec3cOCRfiDqIine4CpZZnqdT5cE" ; } ;
13
+ livekitUrl = "wss://127.0.0.1:8100" ;
14
+ port = 8000 ;
15
+ } ;
16
+ } ;
17
+
18
+ testScript = ''
19
+ machine.wait_for_unit("lk-jwt-service.service")
20
+ machine.succeed("curl 127.0.0.1:8000/sfu/get")
21
+ '' ;
22
+ }
Original file line number Diff line number Diff line change 2
2
lib ,
3
3
buildGoModule ,
4
4
fetchFromGitHub ,
5
+ nixosTests ,
5
6
} :
6
-
7
7
buildGoModule ( finalAttrs : {
8
8
pname = "lk-jwt-service" ;
9
9
version = "0.2.3" ;
@@ -17,6 +17,8 @@ buildGoModule (finalAttrs: {
17
17
18
18
vendorHash = "sha256-47eJO1Ai78RuhlEPn/J1cd+YSqvmfUD8cuPZIqsdxvI=" ;
19
19
20
+ passthru . tests = nixosTests . lk-jwt-service ;
21
+
20
22
meta = with lib ; {
21
23
changelog = "https://github.com/element-hq/lk-jwt-service/releases/tag/${ finalAttrs . src . tag } " ;
22
24
description = "Minimal service to issue LiveKit JWTs for MatrixRTC" ;
You can’t perform that action at this time.
0 commit comments