Skip to content

Commit 8f3e1f8

Browse files
authored
nixos/frigate: Also listen on port 5000 (NixOS#370762)
2 parents aa690fc + 22581ea commit 8f3e1f8

File tree

2 files changed

+8
-1
lines changed

2 files changed

+8
-1
lines changed

nixos/modules/services/video/frigate.nix

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -477,6 +477,10 @@ in
477477
};
478478
};
479479
extraConfig = ''
480+
# Frigate wants to connect on 127.0.0.1:5000 for unauthenticated requests
481+
# https://github.com/NixOS/nixpkgs/issues/370349
482+
listen 127.0.0.1:5000;
483+
480484
# vod settings
481485
vod_base_url "";
482486
vod_segments_base_url "";

nixos/tests/frigate.nix

Lines changed: 4 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -66,9 +66,12 @@ import ./make-test-python.nix (
6666
# login and store session
6767
machine.log(machine.succeed(f"http --check-status --session=frigate post http://localhost/api/login user=admin password={password}"))
6868
69-
# make authenticated api requested
69+
# make authenticated api request
7070
machine.log(machine.succeed("http --check-status --session=frigate get http://localhost/api/version"))
7171
72+
# make unauthenticated api request
73+
machine.log(machine.succeed("http --check-status get http://localhost:5000/api/version"))
74+
7275
# wait for a recording to appear
7376
machine.wait_for_file("/var/cache/frigate/test@*.mp4")
7477
'';

0 commit comments

Comments
 (0)