fix: mqtt default config (#382)

* fix: mqtt-tls in default config template

- panic: json: cannot unmarshal string into Go struct field
  Config.mqtt-tls of type bool

* fix: default mqtt port

- since MqttTLS is set to true by default we need to use the mqtts port
  as well.

  panic: network Error : EOF

Signed-off-by: Julian Strobl <jmastr@mailbox.org>
This commit is contained in:
Julian Strobl 2024-04-25 13:50:22 +02:00 committed by GitHub
parent b45c381b3b
commit 937104b3cd
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194

View File

@ -23,8 +23,7 @@ mqtt-domain = "{{ .PlmntConfig.MqttDomain }}"
mqtt-port = {{ .PlmntConfig.MqttPort }}
mqtt-user = "{{ .PlmntConfig.MqttUser }}"
mqtt-password = "{{ .PlmntConfig.MqttPassword }}"
mqtt-tls = "{{ .PlmntConfig.MqttTLS }}"
mqtt-tls = {{ .PlmntConfig.MqttTLS }}
`
// Config defines Planetmint's top level configuration
@ -62,7 +61,7 @@ func DefaultConfig() *Config {
RPCWallet: "rpcwallet",
ValidatorAddress: "plmnt1w5dww335zhh98pzv783hqre355ck3u4w4hjxcx",
MqttDomain: "testnet-mqtt.rddl.io",
MqttPort: 1885,
MqttPort: 1886,
MqttUser: "user",
MqttPassword: "password",
MqttTLS: true,