Skip to content

Commit

Permalink
support exposing https port if not DISABLE_HTTPS
Browse files Browse the repository at this point in the history
  • Loading branch information
aogier committed Dec 28, 2024
1 parent 88a1b56 commit 856fe14
Show file tree
Hide file tree
Showing 2 changed files with 7 additions and 0 deletions.
4 changes: 4 additions & 0 deletions kubernetes/chart/zulip/templates/service.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -8,7 +8,11 @@ spec:
type: {{ .Values.service.type }}
ports:
- port: {{ .Values.service.port }}
{{- if .Values.zulip.environment.DISABLE_HTTPS }}
targetPort: http
{{- else }}
targetPort: https
{{- end }}
protocol: TCP
name: http
selector:
Expand Down
3 changes: 3 additions & 0 deletions kubernetes/chart/zulip/templates/statefulset.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -50,6 +50,9 @@ spec:
- name: http
containerPort: 80
protocol: TCP
- name: https
containerPort: 443
protocol: TCP
volumeMounts:
- name: {{ include "zulip.fullname" . }}-persistent-storage
mountPath: /data
Expand Down

0 comments on commit 856fe14

Please sign in to comment.