12 lines
228 B
Smarty
12 lines
228 B
Smarty
{{ define "mqtt" }}
|
|
broker: {{ .host }}:{{ .port }}
|
|
{{- if .user }}
|
|
user: {{ .user }}
|
|
{{- end }}
|
|
{{- if .password }}
|
|
password: {{ .password }}
|
|
{{- end }}
|
|
{{- if ne .timeout "30s" }}
|
|
timeout: {{ .timeout }}
|
|
{{- end }}
|
|
{{- end }}
|