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
|
let
|
||||||
|
inherit (tools.meta) domain;
|
||||||
inherit (config.networking) hostName;
|
inherit (config.networking) hostName;
|
||||||
inherit (cluster.config) hostLinks;
|
inherit (cluster.config) hostLinks;
|
||||||
cfg = cluster.config.services.consul;
|
cfg = cluster.config.services.consul;
|
||||||
|
@ -14,6 +15,7 @@ in
|
||||||
webUi = true;
|
webUi = true;
|
||||||
extraConfig = {
|
extraConfig = {
|
||||||
datacenter = "eu-central";
|
datacenter = "eu-central";
|
||||||
|
domain = "sd-magic.${domain}.";
|
||||||
server = true;
|
server = true;
|
||||||
node_name = config.networking.hostName;
|
node_name = config.networking.hostName;
|
||||||
bind_addr = hl.ipv4;
|
bind_addr = hl.ipv4;
|
||||||
|
|
Loading…
Reference in a new issue