nixos/etcd: only use one cient url by default
This commit is contained in:
parent
a5703dd8fc
commit
7202121e0e
@ -28,13 +28,13 @@ in {
|
|||||||
|
|
||||||
listenClientUrls = mkOption {
|
listenClientUrls = mkOption {
|
||||||
description = "Etcd list of URLs to listen on for client traffic.";
|
description = "Etcd list of URLs to listen on for client traffic.";
|
||||||
default = ["http://localhost:2379" "http://localhost:4001"];
|
default = ["http://localhost:4001"];
|
||||||
type = types.listOf types.str;
|
type = types.listOf types.str;
|
||||||
};
|
};
|
||||||
|
|
||||||
listenPeerUrls = mkOption {
|
listenPeerUrls = mkOption {
|
||||||
description = "Etcd list of URLs to listen on for peer traffic.";
|
description = "Etcd list of URLs to listen on for peer traffic.";
|
||||||
default = ["http://localhost:2380" "http://localhost:7001"];
|
default = ["http://localhost:7001"];
|
||||||
type = types.listOf types.str;
|
type = types.listOf types.str;
|
||||||
};
|
};
|
||||||
|
|
||||||
@ -100,7 +100,7 @@ in {
|
|||||||
after = [ "network-interfaces.target" ];
|
after = [ "network-interfaces.target" ];
|
||||||
|
|
||||||
environment = {
|
environment = {
|
||||||
ETCD_NAME = cfg.name;
|
ETCD_NAME = cfg.name;
|
||||||
ETCD_DISCOVERY = cfg.discovery;
|
ETCD_DISCOVERY = cfg.discovery;
|
||||||
ETCD_DATA_DIR = cfg.dataDir;
|
ETCD_DATA_DIR = cfg.dataDir;
|
||||||
ETCD_ADVERTISE_CLIENT_URLS = concatStringsSep "," cfg.advertiseClientUrls;
|
ETCD_ADVERTISE_CLIENT_URLS = concatStringsSep "," cfg.advertiseClientUrls;
|
||||||
|
Loading…
x
Reference in New Issue
Block a user