Use ipv4 for nomad and consul to reduce connectivity issues on my network
This commit is contained in:
@@ -46,6 +46,7 @@
|
|||||||
};
|
};
|
||||||
client = {
|
client = {
|
||||||
enabled = true;
|
enabled = true;
|
||||||
|
preferred_address_family = "ipv4";
|
||||||
%{if cpu_total_compute != null ~}
|
%{if cpu_total_compute != null ~}
|
||||||
cpu_total_compute = ${cpu_total_compute};
|
cpu_total_compute = ${cpu_total_compute};
|
||||||
%{endif ~}
|
%{endif ~}
|
||||||
@@ -71,6 +72,7 @@
|
|||||||
webUi = true;
|
webUi = true;
|
||||||
interface.bind = "${bind_interface}";
|
interface.bind = "${bind_interface}";
|
||||||
interface.advertise = "${bind_interface}";
|
interface.advertise = "${bind_interface}";
|
||||||
|
forceAddrFamily = "ipv4";
|
||||||
extraConfig = {
|
extraConfig = {
|
||||||
client_addr = "{{ GetPrivateInterfaces | exclude \"type\" \"ipv6\" | join \"address\" \" \" }} {{ GetAllInterfaces | include \"flags\" \"loopback\" | join \"address\" \" \" }}";
|
client_addr = "{{ GetPrivateInterfaces | exclude \"type\" \"ipv6\" | join \"address\" \" \" }} {{ GetAllInterfaces | include \"flags\" \"loopback\" | join \"address\" \" \" }}";
|
||||||
%{if bootstrap ~}
|
%{if bootstrap ~}
|
||||||
|
|||||||
Reference in New Issue
Block a user