mirror of
https://github.com/nmasur/dotfiles
synced 2024-12-25 06:34:52 +00:00
don't enable dyndns for services not running
This commit is contained in:
parent
1462214a8e
commit
566a654f5b
@ -5,7 +5,7 @@
|
||||
|
||||
{ config, lib, ... }: {
|
||||
|
||||
config = {
|
||||
config = lib.mkIf config.services.influxdb2.enable {
|
||||
|
||||
services.influxdb2 = {
|
||||
provision = {
|
||||
|
@ -108,7 +108,11 @@
|
||||
}];
|
||||
|
||||
# Configure Cloudflare DNS to point to this machine
|
||||
services.cloudflare-dyndns.domains = [ config.hostnames.prometheus ];
|
||||
services.cloudflare-dyndns.domains =
|
||||
if (config.services.prometheus.enable && isServer) then
|
||||
[ config.hostnames.prometheus ]
|
||||
else
|
||||
[ ];
|
||||
|
||||
};
|
||||
|
||||
|
@ -69,6 +69,13 @@ in {
|
||||
}];
|
||||
}];
|
||||
|
||||
# Configure Cloudflare DNS to point to this machine
|
||||
services.cloudflare-dyndns.domains =
|
||||
if config.services.victoriametrics.enable then
|
||||
[ config.hostnames.prometheus ]
|
||||
else
|
||||
[ ];
|
||||
|
||||
# VMAgent
|
||||
|
||||
services.vmagent.prometheusConfig = prometheusConfig; # Overwritten below
|
||||
|
Loading…
Reference in New Issue
Block a user