From 3944d444aaee72cf23436ff61739d251ba2f0626 Mon Sep 17 00:00:00 2001 From: vincent Date: Sun, 5 Nov 2023 11:58:07 +0100 Subject: [PATCH] pihole listen only on 192.168.1.4 --- nomad-job/pihole.nomad | 19 +++++-------------- 1 file changed, 5 insertions(+), 14 deletions(-) diff --git a/nomad-job/pihole.nomad b/nomad-job/pihole.nomad index 61ca650..25d11bc 100644 --- a/nomad-job/pihole.nomad +++ b/nomad-job/pihole.nomad @@ -26,9 +26,9 @@ job "pihole" { "homer.name=Pi-hole", "homer.service=Application", "homer.type=PiHole", - "homer.logo=http://${NOMAD_ADDR_http}/admin/img/logo.svg", + "homer.logo=http://192.168.1.4:${NOMAD_PORT_http}/admin/img/logo.svg", "homer.target=_blank", - "homer.url=http://${NOMAD_ADDR_http}/admin", + "homer.url=http://192.168.1.4:${NOMAD_PORT_http}/admin", ] port = "http" @@ -39,21 +39,11 @@ job "pihole" { name = "dns" port = "dns" - check { - name = "service: dns tcp check" - type = "tcp" - interval = "10s" - timeout = "2s" - - success_before_passing = "3" - failures_before_critical = "3" - } - check { name = "service: dns dig check" type = "script" command = "/usr/bin/dig" - args = ["+short", "@127.0.0.1"] + args = ["+short", "@192.168.1.4"] interval = "10s" timeout = "2s" @@ -86,7 +76,7 @@ job "pihole" { template { data = <