Move blocky custom mappings above catchall

This commit is contained in:
IamTheFij 2023-04-04 13:12:34 -07:00
parent 87d97ac891
commit 7d8bc45090

View File

@ -84,6 +84,8 @@ blocking:
customDNS: customDNS:
customTTL: 1h customTTL: 1h
mapping: mapping:
{{ with nomadVar "nomad/jobs/blocky" }}{{ .mappings.Value | indent 4 }}{{ end }}
# Catch all at top domain to traefik
{{ with nomadService "traefik" -}} {{ with nomadService "traefik" -}}
{{- $last := len . | subtract 1 -}} {{- $last := len . | subtract 1 -}}
{{- $services := . -}} {{- $services := . -}}
@ -92,8 +94,6 @@ customDNS:
{{- end -}} {{- end -}}
{{- with index . $last }}{{ .Address }}{{ end -}} {{- with index . $last }}{{ .Address }}{{ end -}}
{{- end }} {{- end }}
# Other mappings
{{ with nomadVar "nomad/jobs/blocky" }}{{ .mappings.Value | indent 4 }}{{ end }}
prometheus: prometheus:
enable: true enable: true