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