Skip to content

Commit

Permalink
consul: keep communication on the local network
Browse files Browse the repository at this point in the history
Listen only on the local network interface and avoid the tailnet overlay.

Also spell out nuc as 'nuc.sunrise.box` to resolve to the local IP
address and not to the tailnet address.
  • Loading branch information
wagdav committed Jun 29, 2024
1 parent b8e12e4 commit 725e184
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 3 deletions.
4 changes: 1 addition & 3 deletions modules/consul/base.nix
Original file line number Diff line number Diff line change
Expand Up @@ -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;
Expand Down
1 change: 1 addition & 0 deletions modules/consul/client.nix
Original file line number Diff line number Diff line change
Expand Up @@ -7,6 +7,7 @@

services.consul = {
extraConfig = {
retry_join = [ "nuc.sunrise.box" ];
server = false;
};
};
Expand Down

0 comments on commit 725e184

Please sign in to comment.