fix: make etcd listen on all interfaces (localhost included)

This commit is contained in:
2025-10-10 12:33:03 +02:00
parent 7cc6cd0eba
commit 1cfd24de44

View File

@@ -298,10 +298,10 @@ let
enable = true;
clientCertAuth = true;
peerClientCertAuth = true;
listenClientUrls = mkForce ["https://${host.address}:2379"];
listenPeerUrls = mkForce ["https://${host.address}:2380"];
advertiseClientUrls = mkForce ["https://${host.address}:2379"];
initialAdvertisePeerUrls = mkForce ["https://${host.address}:2380"];
listenClientUrls = mkForce ["https://0.0.0.0:2379"];
listenPeerUrls = mkForce ["https://0.0.0.0:2380"];
advertiseClientUrls = mkForce ["https://0.0.0.0:2379"];
initialAdvertisePeerUrls = mkForce ["https://0.0.0.0:2380"];
name = "${host.name}";
certFile = secret "etcd";
keyFile = secret "etcd-key";
@@ -325,7 +325,6 @@ let
hosts = [
"etcd.local"
"etcd.cluster.local"
"etcd.${domain}"
host.name
host.address
];