我有wss://连接: https://barykin-pin-up.ru/mqtt/ - 效果很好。 但
我的/etc/mosquitto/mosquitto.conf:
pid_file /var/run/mosquitto.pid persistence true persistence_location /var/lib/mosquitto/ listener 1884 allow_anonymous false password_file /etc/mosquitto/p.txt log_dest file /var/log/mosquitto/mosquitto.log listener 9001 protocol websockets certfile /etc/letsencrypt/live/barykin-pin-up.ru/cert.pem cafile /etc/letsencrypt/live/barykin-pin-up.ru/chain.pem keyfile /etc/letsencrypt/live/barykin-pin-up.ru/privkey.pem
我的配置(mqttws31.js)
host = 'barykin-pin-up.ru'; port = 9001; topic = '#'; useTLS = true; username = "guest"; password = "guest1234"; cleansession = true;
我试过听众443 但是
WSS://barykin-pin-up.ru:433 / MQTT
没工作,和
WSS://barykin-pin-up.ru/mqtt
没工作。
我想制作
WSS://barykin-pin-up.ru/mqtt
工作。
我该如何配置?阿帕奇?