cluster/services/consul: use proper subdomain
This commit is contained in:
parent
347cb9dfe7
commit
b362ef59cf
1 changed files with 3 additions and 1 deletions
|
@ -1,6 +1,7 @@
|
|||
{ config, cluster, lib, ... }:
|
||||
{ config, cluster, lib, tools, ... }:
|
||||
|
||||
let
|
||||
inherit (tools.meta) domain;
|
||||
inherit (config.networking) hostName;
|
||||
inherit (cluster.config) hostLinks;
|
||||
cfg = cluster.config.services.consul;
|
||||
|
@ -14,6 +15,7 @@ in
|
|||
webUi = true;
|
||||
extraConfig = {
|
||||
datacenter = "eu-central";
|
||||
domain = "sd-magic.${domain}.";
|
||||
server = true;
|
||||
node_name = config.networking.hostName;
|
||||
bind_addr = hl.ipv4;
|
||||
|
|
Loading…
Reference in a new issue