fix(omada-controller): Allow user to change listening port of UI when ingress is disabled

This commit is contained in:
Stavros Kois
2022-11-15 02:25:35 +02:00
committed by GitHub
parent 1cede202ad
commit 32066e52eb
2 changed files with 3 additions and 3 deletions

View File

@@ -18,7 +18,7 @@ name: omada-controller
sources:
- https://github.com/truecharts/charts/tree/master/charts/stable/omada-controller
- https://github.com/mbentley/docker-omada-controller
version: 8.0.0
version: 8.0.1
annotations:
truecharts.org/catagories: |
- media

View File

@@ -15,7 +15,8 @@ env:
# Omada automatically redirects to that port.
# Instead of consuming the external 443 port, it's better to switch internal
# But still give user the ability to change it.
MANAGE_HTTPS_PORT: "{{ .Values.service.main.ports.main.targetPort }}"
# When ingress is enabled, set this to 443, otherwise set it to whatever `port`` is set to
MANAGE_HTTPS_PORT: "{{ if .ingress.main.enabled }}443{{ else }}{{ .Values.service.main.ports.main.port }}{{ end }}"
PORTAL_HTTPS_PORT: "{{ .Values.service.comm.ports.comm.port }}"
service:
@@ -24,7 +25,6 @@ service:
main:
protocol: HTTPS
port: 8043
targetPort: 443
comm:
enabled: true
ports: