Skip to content

NVR with realtime local object detection for IP cameras

Fix nginx 5000 template (#12210)

Nicolas Mowen21a777ab4527
diff --git a/docker/main/rootfs/usr/local/nginx/templates/listen.gotmpl b/docker/main/rootfs/usr/local/nginx/templates/listen.gotmpl
index 83f13b7561..093d5f68e7 100644
--- a/docker/main/rootfs/usr/local/nginx/templates/listen.gotmpl
+++ b/docker/main/rootfs/usr/local/nginx/templates/listen.gotmpl
@@ -1,3 +1,6 @@
+# intended for internal traffic, not protected by auth
+listen 5000;
+
{{ if not .enabled }}
# intended for external traffic, protected by auth
listen 8971;
@@ -5,9 +8,6 @@ listen 8971;
# intended for external traffic, protected by auth
listen 8971 ssl;
-# intended for internal traffic, not protected by auth
-listen 5000;
-
ssl_certificate /etc/letsencrypt/live/frigate/fullchain.pem;
ssl_certificate_key /etc/letsencrypt/live/frigate/privkey.pem;