Use ipv4 for nomad and consul to reduce connectivity issues on my network

This commit is contained in:
2025-10-20 20:25:58 +11:00
parent 700046cfd1
commit 307f27a10b

View File

@@ -46,6 +46,7 @@
};
client = {
enabled = true;
preferred_address_family = "ipv4";
%{if cpu_total_compute != null ~}
cpu_total_compute = ${cpu_total_compute};
%{endif ~}
@@ -71,6 +72,7 @@
webUi = true;
interface.bind = "${bind_interface}";
interface.advertise = "${bind_interface}";
forceAddrFamily = "ipv4";
extraConfig = {
client_addr = "{{ GetPrivateInterfaces | exclude \"type\" \"ipv6\" | join \"address\" \" \" }} {{ GetAllInterfaces | include \"flags\" \"loopback\" | join \"address\" \" \" }}";
%{if bootstrap ~}