diff --git a/modules/consul/base.nix b/modules/consul/base.nix index 32b373e..b2a36ca 100644 --- a/modules/consul/base.nix +++ b/modules/consul/base.nix @@ -5,9 +5,7 @@ enable = true; extraConfig = { - retry_join = [ "nuc" ]; - - client_addr = [ "0.0.0.0" ]; + bind_addr = "{{ GetPrivateInterfaces | include \"network\" \"192.168.1.0/24\" | attr \"address\" }}"; telemetry = { disable_hostname = true; diff --git a/modules/consul/client.nix b/modules/consul/client.nix index c96c01c..de13e31 100644 --- a/modules/consul/client.nix +++ b/modules/consul/client.nix @@ -7,6 +7,7 @@ services.consul = { extraConfig = { + retry_join = [ "nuc.sunrise.box" ]; server = false; }; };