add websocket listener to mosquitto
This commit is contained in:
@@ -247,7 +247,25 @@ in
|
||||
|
||||
mosquitto = {
|
||||
enable = true;
|
||||
subdomain = "mqtt";
|
||||
listeners = [
|
||||
{
|
||||
users = {
|
||||
homie = {
|
||||
acl = [
|
||||
"readwrite homie/#"
|
||||
];
|
||||
hashedPasswordFile = secrets."mosquitto/homie".path;
|
||||
};
|
||||
};
|
||||
port = 8084;
|
||||
settings = {
|
||||
protocol = "websockets";
|
||||
cafile = "/run/credentials/mosquitto.service/fullchain.pem";
|
||||
certfile = "/run/credentials/mosquitto.service/fullchain.pem";
|
||||
keyfile = "/run/credentials/mosquitto.service/key.pem";
|
||||
};
|
||||
}
|
||||
{
|
||||
users = {
|
||||
homie = {
|
||||
|
||||
Reference in New Issue
Block a user