homelab-nomad/blocky/config.yml

52 lines
1.3 KiB
YAML
Raw Normal View History

2022-02-28 20:07:34 +00:00
upstream:
default:
- 1.1.1.1
- 1.0.0.1
2022-02-28 20:07:34 +00:00
blocking:
blackLists:
ads:
- https://raw.githubusercontent.com/StevenBlack/hosts/master/hosts
2022-03-22 03:12:47 +00:00
- http://sysctl.org/cameleon/hosts
- https://s3.amazonaws.com/lists.disconnect.me/simple_tracking.txt
- https://s3.amazonaws.com/lists.disconnect.me/simple_ad.txt
- https://hosts-file.net/ad_servers.txt
smarttv:
- https://perflyst.github.io/PiHoleBlocklist/SmartTV.txt
- https://perflyst.github.io/PiHoleBlocklist/regex.list
malware:
- https://mirror1.malwaredomains.com/files/justdomains
2022-02-28 20:07:34 +00:00
clientGroupsBlock:
default:
- ads
2022-03-22 03:12:47 +00:00
- malware
- smarttv
2022-02-28 20:07:34 +00:00
customDNS:
customTTL: 1h
mapping:
{{ with service "traefik" -}}
{{- $last := len . | subtract 1 -}}
{{- $services := . -}}
${base_hostname}: {{ range $i := loop $last -}}
{{- with index $services $i }}{{ .Address }},{{ end -}}
{{- end -}}
{{- with index . $last }}{{ .Address }}{{ end -}}
{{- end }}
2022-02-28 20:07:34 +00:00
prometheus:
enable: true
redis:
address: {{ env "NOMAD_UPSTREAM_ADDR_redis" }}
connectionAttempts: 10
connectionCooldown: 3s
# queryLog:
# type: mysql
# target: db_user:db_password@tcp(db_host_or_ip:3306)/db_user?charset=utf8mb4&parseTime=True&loc=Local
# logRetentionDays: 7
2022-02-28 20:07:34 +00:00
port: 53
httpPort: 4000