Skip to content

Commit

Permalink
nixos/frigate: Also listen on port 5000 (#370762)
Browse files Browse the repository at this point in the history
  • Loading branch information
mweinelt authored Jan 4, 2025
2 parents aa690fc + 22581ea commit 8f3e1f8
Show file tree
Hide file tree
Showing 2 changed files with 8 additions and 1 deletion.
4 changes: 4 additions & 0 deletions nixos/modules/services/video/frigate.nix
Original file line number Diff line number Diff line change
Expand Up @@ -477,6 +477,10 @@ in
};
};
extraConfig = ''
# Frigate wants to connect on 127.0.0.1:5000 for unauthenticated requests
# https://github.com/NixOS/nixpkgs/issues/370349
listen 127.0.0.1:5000;
# vod settings
vod_base_url "";
vod_segments_base_url "";
Expand Down
5 changes: 4 additions & 1 deletion nixos/tests/frigate.nix
Original file line number Diff line number Diff line change
Expand Up @@ -66,9 +66,12 @@ import ./make-test-python.nix (
# login and store session
machine.log(machine.succeed(f"http --check-status --session=frigate post http://localhost/api/login user=admin password={password}"))
# make authenticated api requested
# make authenticated api request
machine.log(machine.succeed("http --check-status --session=frigate get http://localhost/api/version"))
# make unauthenticated api request
machine.log(machine.succeed("http --check-status get http://localhost:5000/api/version"))
# wait for a recording to appear
machine.wait_for_file("/var/cache/frigate/test@*.mp4")
'';
Expand Down

0 comments on commit 8f3e1f8

Please sign in to comment.