25 lines
784 B
YAML
25 lines
784 B
YAML
|
|
|
|
configmap:
|
|
config:
|
|
enabled: true
|
|
data:
|
|
mosquitto.conf: |
|
|
listener {{ .Values.service.main.ports.main.targetPort }}
|
|
{{- if .Values.websockets.enabled }}
|
|
listener {{ .Values.service.websockets.ports.websockets.targetPort }}
|
|
protocol websockets
|
|
{{- end }}
|
|
{{- if .Values.auth.enabled }}
|
|
allow_anonymous false
|
|
{{- else }}
|
|
allow_anonymous true
|
|
{{- end }}
|
|
{{- if .Values.persistence.data.enabled }}
|
|
persistence true
|
|
persistence_location {{ .Values.persistence.data.mountPath }}
|
|
autosave_interval 1800
|
|
{{- end }}
|
|
{{- if .Values.persistence.configinc.enabled }}
|
|
include_dir {{ .Values.persistence.configinc.mountPath }}
|
|
{{- end }} |