mirror of
https://github.com/planetmint/planetmint-go.git
synced 2025-06-07 06:36:42 +00:00
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:
parent
b45c381b3b
commit
937104b3cd
@ -23,8 +23,7 @@ mqtt-domain = "{{ .PlmntConfig.MqttDomain }}"
|
|||||||
mqtt-port = {{ .PlmntConfig.MqttPort }}
|
mqtt-port = {{ .PlmntConfig.MqttPort }}
|
||||||
mqtt-user = "{{ .PlmntConfig.MqttUser }}"
|
mqtt-user = "{{ .PlmntConfig.MqttUser }}"
|
||||||
mqtt-password = "{{ .PlmntConfig.MqttPassword }}"
|
mqtt-password = "{{ .PlmntConfig.MqttPassword }}"
|
||||||
mqtt-tls = "{{ .PlmntConfig.MqttTLS }}"
|
mqtt-tls = {{ .PlmntConfig.MqttTLS }}
|
||||||
|
|
||||||
`
|
`
|
||||||
|
|
||||||
// Config defines Planetmint's top level configuration
|
// Config defines Planetmint's top level configuration
|
||||||
@ -62,7 +61,7 @@ func DefaultConfig() *Config {
|
|||||||
RPCWallet: "rpcwallet",
|
RPCWallet: "rpcwallet",
|
||||||
ValidatorAddress: "plmnt1w5dww335zhh98pzv783hqre355ck3u4w4hjxcx",
|
ValidatorAddress: "plmnt1w5dww335zhh98pzv783hqre355ck3u4w4hjxcx",
|
||||||
MqttDomain: "testnet-mqtt.rddl.io",
|
MqttDomain: "testnet-mqtt.rddl.io",
|
||||||
MqttPort: 1885,
|
MqttPort: 1886,
|
||||||
MqttUser: "user",
|
MqttUser: "user",
|
||||||
MqttPassword: "password",
|
MqttPassword: "password",
|
||||||
MqttTLS: true,
|
MqttTLS: true,
|
||||||
|
Loading…
x
Reference in New Issue
Block a user