cluster/services/consul: use proper subdomain

This commit is contained in:
Max Headroom 2023-03-05 22:14:05 +01:00
parent 347cb9dfe7
commit b362ef59cf

View file

@ -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;