From 3fffc3cdc011c86ee740867b2de497fe1a5bbd6e Mon Sep 17 00:00:00 2001 From: Janis Hutz <98422316+janishutz@users.noreply.github.com> Date: Fri, 27 Dec 2024 13:07:01 +0000 Subject: [PATCH 1/5] Add authenticated web portal port --- community/frigate/1.2.8/questions.yaml | 11 +++++++++++ 1 file changed, 11 insertions(+) diff --git a/community/frigate/1.2.8/questions.yaml b/community/frigate/1.2.8/questions.yaml index 4c0b06b3bb3..99d8b9267ac 100644 --- a/community/frigate/1.2.8/questions.yaml +++ b/community/frigate/1.2.8/questions.yaml @@ -95,6 +95,17 @@ questions: min: 9000 max: 65535 required: true + - variable: authenticatedWeb + label: Authenticated Web-Port + description: | + The port for the Frigate Web UI with authentication.
+ Internal port: 8971 + schema: + type: int + default: 30062 + min: 9000 + max: 65535 + required: true - variable: enableRtmp label: Enable RTMP description: Enable RTMP for Frigate. From 46df47a39dbd8d0d6c4765691e867b2ada189231 Mon Sep 17 00:00:00 2001 From: Janis Hutz <98422316+janishutz@users.noreply.github.com> Date: Fri, 27 Dec 2024 13:11:06 +0000 Subject: [PATCH 2/5] Update questions.yaml --- community/frigate/1.2.8/questions.yaml | 11 +++++++++-- 1 file changed, 9 insertions(+), 2 deletions(-) diff --git a/community/frigate/1.2.8/questions.yaml b/community/frigate/1.2.8/questions.yaml index 99d8b9267ac..1c8f39b4cc2 100644 --- a/community/frigate/1.2.8/questions.yaml +++ b/community/frigate/1.2.8/questions.yaml @@ -95,14 +95,21 @@ questions: min: 9000 max: 65535 required: true - - variable: authenticatedWeb - label: Authenticated Web-Port + - variable: enableAuthenticatedUI + label: Enable Authenticated UI + description: Enable Authenticated UI for Frigate. + schema: + type: boolean + default: false + - variable: rtmpPort + label: Authenticated Web UI Port description: | The port for the Frigate Web UI with authentication.
Internal port: 8971 schema: type: int default: 30062 + show_if: [["enableAuthenticatedUI", "=", true]] min: 9000 max: 65535 required: true From 57c24381e059dac310e4bf287d949ca0a896593d Mon Sep 17 00:00:00 2001 From: Janis Hutz <98422316+janishutz@users.noreply.github.com> Date: Fri, 27 Dec 2024 13:12:05 +0000 Subject: [PATCH 3/5] Update questions.yaml --- community/frigate/1.2.8/questions.yaml | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/community/frigate/1.2.8/questions.yaml b/community/frigate/1.2.8/questions.yaml index 1c8f39b4cc2..0dd4a7ce71b 100644 --- a/community/frigate/1.2.8/questions.yaml +++ b/community/frigate/1.2.8/questions.yaml @@ -101,7 +101,7 @@ questions: schema: type: boolean default: false - - variable: rtmpPort + - variable: authenticatedUIPort label: Authenticated Web UI Port description: | The port for the Frigate Web UI with authentication.
From 59446fba80f891b84ce72f21f7d212b3c18caee0 Mon Sep 17 00:00:00 2001 From: Janis Hutz <98422316+janishutz@users.noreply.github.com> Date: Fri, 27 Dec 2024 13:12:19 +0000 Subject: [PATCH 4/5] Add the variables here --- community/frigate/1.2.8/ix_values.yaml | 2 ++ 1 file changed, 2 insertions(+) diff --git a/community/frigate/1.2.8/ix_values.yaml b/community/frigate/1.2.8/ix_values.yaml index 270e71639b6..fc2cedc4c4b 100644 --- a/community/frigate/1.2.8/ix_values.yaml +++ b/community/frigate/1.2.8/ix_values.yaml @@ -28,6 +28,8 @@ frigateNetwork: rtspPort: 30060 enableWebRtc: false webRtcPort: 30061 + enableAuthenticatedUI: false + authenticatedUIPort: 30062 frigateGPU: {} From ed7dd0215f58bfb513734d8249f598dd6c3910ab Mon Sep 17 00:00:00 2001 From: Janis Hutz Date: Sat, 28 Dec 2024 08:10:41 +0100 Subject: [PATCH 5/5] Add new variables where required --- community/frigate/1.2.8/ci/basic-values.yaml | 2 ++ community/frigate/1.2.8/ci/extra-values.yaml | 2 ++ .../frigate/1.2.8/ci/hostNet-values.yaml | 1 + .../frigate/1.2.8/templates/_service.tpl | 14 +++++++++ community/frigate/app_versions.json | 30 ++++++++++++++++++- 5 files changed, 48 insertions(+), 1 deletion(-) diff --git a/community/frigate/1.2.8/ci/basic-values.yaml b/community/frigate/1.2.8/ci/basic-values.yaml index a1f2756e5c2..29f623de8b7 100644 --- a/community/frigate/1.2.8/ci/basic-values.yaml +++ b/community/frigate/1.2.8/ci/basic-values.yaml @@ -6,6 +6,8 @@ frigateNetwork: rtspPort: 31002 enableWebRtc: true webRtcPort: 31003 + enableAuthenticatedUI: true + authenticatedUIPort: 31004 frigateStorage: config: diff --git a/community/frigate/1.2.8/ci/extra-values.yaml b/community/frigate/1.2.8/ci/extra-values.yaml index 51a7537cddb..94e40493719 100644 --- a/community/frigate/1.2.8/ci/extra-values.yaml +++ b/community/frigate/1.2.8/ci/extra-values.yaml @@ -6,6 +6,8 @@ frigateNetwork: rtspPort: 31002 enableWebRtc: true webRtcPort: 31003 + enableAuthenticatedUI: true + authenticatedUIPort: 31004 frigateConfig: mountUSBBus: true diff --git a/community/frigate/1.2.8/ci/hostNet-values.yaml b/community/frigate/1.2.8/ci/hostNet-values.yaml index d36cd4328a8..18337fce7d5 100644 --- a/community/frigate/1.2.8/ci/hostNet-values.yaml +++ b/community/frigate/1.2.8/ci/hostNet-values.yaml @@ -2,6 +2,7 @@ frigateNetwork: enableRtmp: true enableRtsp: true enableWebRtc: true + enableAuthenticatedUI: true hostNetwork: true frigateStorage: diff --git a/community/frigate/1.2.8/templates/_service.tpl b/community/frigate/1.2.8/templates/_service.tpl index 113ac50a780..e95c036a4a2 100644 --- a/community/frigate/1.2.8/templates/_service.tpl +++ b/community/frigate/1.2.8/templates/_service.tpl @@ -13,6 +13,20 @@ service: nodePort: {{ .Values.frigateNetwork.webPort }} targetPort: 5000 targetSelector: frigate + {{ if .Values.frigateNetwork.enableAuthenticatedUI }} + authUI: + enabled: true + type: NodePort + targetSelector: frigate + ports: + authUI: + enabled: true + primary: true + port: {{ .Values.frigateNetwork.authenticatedUIPort }} + nodePort: {{ .Values.frigateNetwork.authenticatedUIPort }} + targetPort: 8971 + targetSelector: frigate + {{ end }} {{ if .Values.frigateNetwork.enableRtmp }} rtmp: enabled: true diff --git a/community/frigate/app_versions.json b/community/frigate/app_versions.json index 2e9870501f5..435149f9047 100644 --- a/community/frigate/app_versions.json +++ b/community/frigate/app_versions.json @@ -302,6 +302,34 @@ "max": 65535, "required": true } + }, + { + "variable": "enableAuthenticatedUI", + "label": "Enable authenticated UI", + "description": "Enable the authenticated web ui for frigate", + "schema": { + "type": "boolean", + "default": false + } + }, + { + "variable": "authenticatedUIPort", + "label": "Authenticated UI Port", + "description": "The authenticated UI port for Frigate.
\nInternal port: 8971
\n", + "schema": { + "type": "int", + "default": 30062, + "show_if": [ + [ + "enableAuthenticatedUI", + "=", + true + ] + ], + "min": 9000, + "max": 65535, + "required": true + } } ] } @@ -1489,4 +1517,4 @@ "detailed_readme": "

Frigate

\n

Frigate is an NVR With Realtime Object Detection for IP Cameras

\n
\n

Note: m.2 Coral TPU devices is not supported.

\n
", "changelog": null } -} \ No newline at end of file +}