fix: expose authenticated frigate port

This commit is contained in:
514fpv 2025-04-30 04:40:24 +08:00
parent 2b75e0c0fa
commit b3b809bd4a
Signed by: koishi
SSH key fingerprint: SHA256:652+A2yCgByK6j4+urGiApE+tZbISyelwTnr76Tm+x8

View file

@ -8,7 +8,7 @@
virtualisation.oci-containers.containers.frigate = { virtualisation.oci-containers.containers.frigate = {
extraOptions = [ extraOptions = [
"--privileged" "--privileged"
"--shm-size=128mb" "--shm-size=256mb"
"--device=/dev/bus/usb:/dev/bus/usb" "--device=/dev/bus/usb:/dev/bus/usb"
]; ];
image = "ghcr.io/blakeblackshear/frigate:stable"; image = "ghcr.io/blakeblackshear/frigate:stable";
@ -19,7 +19,8 @@
#"/tmp/frigate:/tmp/cache" #"/tmp/frigate:/tmp/cache"
]; ];
ports = [ ports = [
"5000:5000" "127.0.0.1:5000:5000"
"8971:8971"
"8554:8554" # RTSP feeds "8554:8554" # RTSP feeds
"8555:8555/tcp" # WebRTC over tcp "8555:8555/tcp" # WebRTC over tcp
"8555:8555/udp" # WebRTC over udp "8555:8555/udp" # WebRTC over udp
@ -27,7 +28,7 @@
}; };
networking.firewall.interfaces.ss0.allowedTCPPorts = [ networking.firewall.interfaces.ss0.allowedTCPPorts = [
5000 8971
8554 8554
8555 8555
]; ];