feat(mosquitto): Add optional websockets support (#3883)

This commit is contained in:
Ben Woods
2022-09-26 12:14:21 +02:00
committed by GitHub
parent dae85c5462
commit 1c92036c6c
3 changed files with 58 additions and 1 deletions
+15
View File
@@ -9,17 +9,32 @@ service:
main:
port: 1883
targetPort: 1883
websockets:
enabled: true
ports:
websockets:
enabled: true
port: 9001
targetPort: 9001
auth:
# -- By enabling this, `allow_anonymous` gets set to `false` in the mosquitto config.
enabled: false
websockets:
# -- By enabling this, an additional listener with protocol websockets is added in the mosquitto config.
enabled: false
configmap:
config:
enabled: true
data:
mosquitto.conf: |
listener {{ .Values.service.main.ports.main.port }}
{{- if .Values.websockets.enabled }}
listener {{ .Values.service.websockets.ports.websockets.targetPort }}
protocol websockets
{{- end }}
{{- if .Values.auth.enabled }}
allow_anonymous false
{{- else }}