Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Frigate: Add new authenticated UI / API port to app #3023

Closed
wants to merge 5 commits into from
Closed
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
2 changes: 2 additions & 0 deletions community/frigate/1.2.8/ci/basic-values.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -6,6 +6,8 @@ frigateNetwork:
rtspPort: 31002
enableWebRtc: true
webRtcPort: 31003
enableAuthenticatedUI: true
authenticatedUIPort: 31004

frigateStorage:
config:
Expand Down
2 changes: 2 additions & 0 deletions community/frigate/1.2.8/ci/extra-values.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -6,6 +6,8 @@ frigateNetwork:
rtspPort: 31002
enableWebRtc: true
webRtcPort: 31003
enableAuthenticatedUI: true
authenticatedUIPort: 31004

frigateConfig:
mountUSBBus: true
Expand Down
1 change: 1 addition & 0 deletions community/frigate/1.2.8/ci/hostNet-values.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -2,6 +2,7 @@ frigateNetwork:
enableRtmp: true
enableRtsp: true
enableWebRtc: true
enableAuthenticatedUI: true
hostNetwork: true

frigateStorage:
Expand Down
2 changes: 2 additions & 0 deletions community/frigate/1.2.8/ix_values.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -28,6 +28,8 @@ frigateNetwork:
rtspPort: 30060
enableWebRtc: false
webRtcPort: 30061
enableAuthenticatedUI: false
authenticatedUIPort: 30062

frigateGPU: {}

Expand Down
18 changes: 18 additions & 0 deletions community/frigate/1.2.8/questions.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -95,6 +95,24 @@ questions:
min: 9000
max: 65535
required: true
- variable: enableAuthenticatedUI
label: Enable Authenticated UI
description: Enable Authenticated UI for Frigate.
schema:
type: boolean
default: false
- variable: authenticatedUIPort
label: Authenticated Web UI Port
description: |
The port for the Frigate Web UI with authentication.</br>
Internal port: 8971
schema:
type: int
default: 30062
show_if: [["enableAuthenticatedUI", "=", true]]
min: 9000
max: 65535
required: true
- variable: enableRtmp
label: Enable RTMP
description: Enable RTMP for Frigate.
Expand Down
14 changes: 14 additions & 0 deletions community/frigate/1.2.8/templates/_service.tpl
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down
30 changes: 29 additions & 1 deletion community/frigate/app_versions.json
Original file line number Diff line number Diff line change
Expand Up @@ -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.</br>\nInternal port: 8971</br>\n",
"schema": {
"type": "int",
"default": 30062,
"show_if": [
[
"enableAuthenticatedUI",
"=",
true
]
],
"min": 9000,
"max": 65535,
"required": true
}
}
]
}
Expand Down Expand Up @@ -1489,4 +1517,4 @@
"detailed_readme": "<h1>Frigate</h1>\n<p><a href=\"https://github.com/blakeblackshear/frigate\">Frigate</a> is an NVR With Realtime Object Detection for IP Cameras</p>\n<blockquote>\n<p>Note: <strong>m.2</strong> Coral TPU devices is not supported.</p>\n</blockquote>",
"changelog": null
}
}
}