nginx反向代理和负载均衡emqx集群 怎么配置

在windows上测试 使用static实现emqx集群 有两个实例 tcp端口分别是1883 1884
节点1的配置文件如下
node {
name = “node1@127.0.0.1
cookie = “emqxsecretcookie”
data_dir = “data”
}

cluster {
discovery_strategy = static
static {
seeds = [“node1@127.0.0.1”, “node2@127.0.0.1”]
}
}

listeners.tcp.default {
bind = 1883
}

listeners.ssl.default {
bind = 8883
}

listeners.ws.default {
bind = 8884
}

listeners.wss.default {
bind = 8885
}

dashboard {
listeners.http {
bind = 18083
}
}

authorization {
deny_action = ignore
no_match = allow
cache = { enable = true }
}

节点二如下
node {
name = “node2@127.0.0.1
cookie = “emqxsecretcookie”
data_dir = “data”
}

cluster {
discovery_strategy = static
static {
seeds = [“node1@127.0.0.1”, “node2@127.0.0.1”]
}
}

listeners.tcp.default {
bind = 1884
}

listeners.ssl.default {
bind = 8886
}

listeners.ws.default {
bind = 8887
}

listeners.wss.default {
bind = 8888
}

dashboard {
listeners.http {
bind = 18084
}
}

authorization {
deny_action = ignore
no_match = allow
cache = { enable = true }
}
nginx这样配
image
使用mqtt客户端连接时 报这个错误
image
image
应该是nginx缺少ssl ws 等配置吗