Skip to content

Commit 1446633

Browse files
committed
opencloud gateway: set onlyoffice listener name and protocol depending on .Values.global.tls.enabled
1 parent b8f7800 commit 1446633

File tree

1 file changed

+8
-0
lines changed

1 file changed

+8
-0
lines changed

charts/opencloud/templates/gateway/gateway.yaml

Lines changed: 8 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -124,8 +124,16 @@ spec:
124124
kubernetes.io/metadata.name: {{ .Values.httpRoute.gateway.namespace | default .Release.Namespace }}
125125
{{- end }}
126126
{{- if .Values.onlyoffice.enabled }}
127+
{{- if .Values.global.tls.enabled }}
127128
- name: onlyoffice-https
129+
{{- else }}
130+
- name: onlyoffice-http
131+
{{- end }}
132+
{{- if .Values.global.tls.enabled }}
128133
protocol: HTTPS
134+
{{- else }}
135+
protocol: HTTP
136+
{{- end }}
129137
port: {{ .Values.httpRoute.gateway.port | default 443 }}
130138
hostname: {{ .Values.global.domain.onlyoffice | quote }}
131139
{{- if .Values.global.tls.enabled }}

0 commit comments

Comments
 (0)