Lock down access to mqtt
All checks were successful
Check Flake / check-flake (push) Successful in 1m6s
All checks were successful
Check Flake / check-flake (push) Successful in 1m6s
This commit is contained in:
parent
5b666a0565
commit
c7d9e84f73
@ -8,9 +8,10 @@
|
||||
enable = true;
|
||||
listeners = [
|
||||
{
|
||||
acl = [ "pattern readwrite #" ];
|
||||
omitPasswordAuth = true;
|
||||
settings.allow_anonymous = true;
|
||||
users.root = {
|
||||
acl = [ "readwrite #" ];
|
||||
hashedPassword = "$7$101$8+QnkTzCdGizaKqq$lpU4o84n6D/1uwfA9pZDVExr1NDm1D/8tNla2tE9J9HdUqkvu192yYfiySY1MFqVNgUKgWEFu5P1bUKqRnzbUw==";
|
||||
};
|
||||
}
|
||||
];
|
||||
};
|
||||
@ -28,7 +29,8 @@
|
||||
};
|
||||
mqtt = {
|
||||
server = "mqtt://localhost:1883";
|
||||
# base_topic = "zigbee2mqtt";
|
||||
user = "root";
|
||||
password = "'!/run/agenix/zigbee2mqtt.yaml mqtt_password'";
|
||||
};
|
||||
frontend = {
|
||||
host = "localhost";
|
||||
@ -36,6 +38,7 @@
|
||||
};
|
||||
};
|
||||
};
|
||||
age.secrets."zigbee2mqtt.yaml".file = ../../../secrets/zigbee2mqtt.yaml.age;
|
||||
|
||||
services.home-assistant = {
|
||||
enable = true;
|
||||
|
@ -12,6 +12,7 @@
|
||||
"binary-cache"
|
||||
"gitea-actions-runner"
|
||||
"frigate"
|
||||
"zigbee"
|
||||
];
|
||||
|
||||
hostKey = "ssh-ed25519 AAAAC3NzaC1lZDI1NTE5AAAAIAwiXcUFtAvZCayhu4+AIcF+Ktrdgv9ee/mXSIhJbp4q";
|
||||
|
@ -57,4 +57,7 @@ with roles;
|
||||
|
||||
# Frigate (DVR)
|
||||
"frigate-credentials.age".publicKeys = frigate;
|
||||
|
||||
# zigbee2mqtt secrets
|
||||
"zigbee2mqtt.yaml.age".publicKeys = zigbee;
|
||||
}
|
||||
|
8
secrets/zigbee2mqtt.yaml.age
Normal file
8
secrets/zigbee2mqtt.yaml.age
Normal file
@ -0,0 +1,8 @@
|
||||
age-encryption.org/v1
|
||||
-> ssh-ed25519 hPp1nw TSDuPaFp/Qcz4r819X4QmU/4J2TGpoX7jCCJCdFDog0
|
||||
SwQUqEp45xMOeTkvBG6uX28kB8YWG66laYqakSgl9w4
|
||||
-> ssh-ed25519 w3nu8g tLZDNE0iBgOpUB3djpNu3CgimsRc0zcds+AgctzxyQ4
|
||||
Oyz6XORsApM4vFxWyaD3bR/ApIUFPY3q4yGvtbosUIY
|
||||
--- vuXlQmuOFbJhBTACN5ciH2GlOCbRCMPZdlogG2O+KOk
|
||||
Áëÿ!}UIì p0@Xž|°þ#晆0HÙõò#BÇRR<52>Ù
|
||||
òùø5¾Iÿ?vX?pÝ<70>—<>fqÍ[lž¸˜xÏG7ü;UäÀOUä¶
|
Loading…
x
Reference in New Issue
Block a user