2023-03-27 22:21:35 +00:00
|
|
|
ports:
|
|
|
|
dns: 53
|
|
|
|
http: 4000
|
|
|
|
|
2022-11-15 18:26:26 +00:00
|
|
|
bootstrapDns:
|
2023-03-27 22:21:35 +00:00
|
|
|
- upstream: 1.1.1.1
|
|
|
|
- upstream: 1.0.0.1
|
2024-02-13 20:02:14 +00:00
|
|
|
- upstream: 9.9.9.9
|
|
|
|
- upstream: 149.112.112.112
|
|
|
|
|
2022-11-15 18:26:26 +00:00
|
|
|
|
2023-11-30 22:00:27 +00:00
|
|
|
upstreams:
|
|
|
|
groups:
|
|
|
|
default:
|
2024-02-13 20:02:14 +00:00
|
|
|
- https://dns.quad9.net/dns-query
|
|
|
|
- tcp-tls:dns.quad9.net
|
|
|
|
cloudflare:
|
2023-11-30 22:00:27 +00:00
|
|
|
- 1.1.1.1
|
|
|
|
- 1.0.0.1
|
2024-02-13 20:02:14 +00:00
|
|
|
- 2606:4700:4700::1111
|
|
|
|
- 2606:4700:4700::1001
|
|
|
|
- https://one.one.one.one/dns-query
|
|
|
|
- tcp-tls:one.one.one.one
|
2023-11-30 22:00:27 +00:00
|
|
|
quad9:
|
|
|
|
- 9.9.9.9
|
|
|
|
- 149.112.112.112
|
|
|
|
- 2620:fe::fe
|
|
|
|
- 2620:fe::9
|
|
|
|
- https://dns.quad9.net/dns-query
|
|
|
|
- tcp-tls:dns.quad9.net
|
2024-02-13 20:02:14 +00:00
|
|
|
quad9-secured:
|
|
|
|
- 9.9.9.11
|
|
|
|
- 149.112.112.11
|
|
|
|
- 2620:fe::11
|
|
|
|
- 2620:fe::fe:11
|
|
|
|
- https://dns11.quad9.net/dns-query
|
|
|
|
- tcp-tls:dns11.quad9.net
|
2023-11-30 22:00:27 +00:00
|
|
|
quad9-unsecured:
|
|
|
|
- 9.9.9.10
|
|
|
|
- 149.112.112.10
|
|
|
|
- 2620:fe::10
|
|
|
|
- 2620:fe::fe:10
|
|
|
|
- https://dns10.quad9.net/dns-query
|
|
|
|
- tcp-tls:dns10.quad9.net
|
2022-03-14 22:56:06 +00:00
|
|
|
|
2022-07-28 05:04:46 +00:00
|
|
|
conditional:
|
2022-11-15 18:26:26 +00:00
|
|
|
fallbackUpstream: false
|
2022-07-28 05:04:46 +00:00
|
|
|
mapping:
|
|
|
|
home.arpa: 192.168.2.1
|
|
|
|
in-addr.arpa: 192.168.2.1
|
|
|
|
iot: 192.168.2.1
|
|
|
|
local: 192.168.2.1
|
|
|
|
thefij: 192.168.2.1
|
|
|
|
.: 192.168.2.1
|
|
|
|
|
2023-03-27 22:20:50 +00:00
|
|
|
hostsFile:
|
2023-11-30 22:00:27 +00:00
|
|
|
sources:
|
|
|
|
- {{ env "NOMAD_TASK_DIR" }}/nomad.hosts
|
2023-03-27 22:20:50 +00:00
|
|
|
hostsTTL: 30s
|
2023-11-30 22:00:27 +00:00
|
|
|
loading:
|
|
|
|
refreshPeriod: 30s
|
2023-03-27 22:20:50 +00:00
|
|
|
|
2022-11-15 18:26:26 +00:00
|
|
|
clientLookup:
|
|
|
|
upstream: 192.168.2.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
|
2024-02-13 20:02:35 +00:00
|
|
|
# - https://hosts-file.net/ad_servers.txt
|
2022-03-22 03:12:47 +00:00
|
|
|
smarttv:
|
|
|
|
- https://perflyst.github.io/PiHoleBlocklist/SmartTV.txt
|
2023-11-30 21:39:01 +00:00
|
|
|
# - https://perflyst.github.io/PiHoleBlocklist/regex.list
|
2023-06-20 16:42:33 +00:00
|
|
|
wemo:
|
|
|
|
- |
|
|
|
|
# Remote commands
|
|
|
|
api.xbcs.net
|
|
|
|
# Firmware updates
|
|
|
|
fw.xbcs.net
|
|
|
|
# TURN service
|
|
|
|
nat.wemo2.com
|
|
|
|
# Connectivity checks
|
|
|
|
heartbeat.xwemo.com
|
2022-12-22 23:13:31 +00:00
|
|
|
antisocial:
|
|
|
|
- |
|
|
|
|
facebook.com
|
|
|
|
instagram.com
|
|
|
|
reddit.com
|
|
|
|
twitter.com
|
|
|
|
youtube.com
|
2023-11-30 21:23:54 +00:00
|
|
|
custom:
|
|
|
|
- https://git.thefij.rocks/iamthefij/blocklists/raw/branch/main/block
|
2022-12-22 23:13:31 +00:00
|
|
|
|
2022-06-23 20:36:06 +00:00
|
|
|
whiteLists:
|
|
|
|
ads:
|
2022-11-21 00:24:00 +00:00
|
|
|
{{ with nomadVar "nomad/jobs/blocky" -}}
|
2022-11-22 22:01:11 +00:00
|
|
|
{{ .whitelists_ads.Value | indent 6 }}
|
2022-11-21 00:24:00 +00:00
|
|
|
{{- end }}
|
2023-11-30 21:23:54 +00:00
|
|
|
custom:
|
|
|
|
- https://git.thefij.rocks/iamthefij/blocklists/raw/branch/main/allow
|
2022-11-22 22:01:11 +00:00
|
|
|
|
2022-02-28 20:07:34 +00:00
|
|
|
clientGroupsBlock:
|
|
|
|
default:
|
|
|
|
- ads
|
2023-11-30 21:23:54 +00:00
|
|
|
- custom
|
2022-05-18 21:22:35 +00:00
|
|
|
- smarttv
|
2023-06-20 16:42:33 +00:00
|
|
|
- wemo
|
2022-02-28 20:07:34 +00:00
|
|
|
|
|
|
|
customDNS:
|
|
|
|
customTTL: 1h
|
|
|
|
mapping:
|
2023-04-04 20:12:34 +00:00
|
|
|
{{ with nomadVar "nomad/jobs/blocky" }}{{ .mappings.Value | indent 4 }}{{ end }}
|
|
|
|
# Catch all at top domain to traefik
|
2022-11-21 00:24:00 +00:00
|
|
|
{{ with nomadService "traefik" -}}
|
2022-05-19 23:53:56 +00:00
|
|
|
{{- $last := len . | subtract 1 -}}
|
|
|
|
{{- $services := . -}}
|
2022-11-21 00:24:00 +00:00
|
|
|
{{ with nomadVar "nomad/jobs" }}{{ .base_hostname }}{{ end }}: {{ range $i := loop $last -}}
|
2022-05-19 23:53:56 +00:00
|
|
|
{{- with index $services $i }}{{ .Address }},{{ end -}}
|
|
|
|
{{- end -}}
|
|
|
|
{{- with index . $last }}{{ .Address }}{{ end -}}
|
2023-03-27 22:21:35 +00:00
|
|
|
{{- end }}
|
2022-02-28 20:07:34 +00:00
|
|
|
|
2022-03-14 22:56:06 +00:00
|
|
|
prometheus:
|
|
|
|
enable: true
|
|
|
|
|
2023-12-11 04:37:43 +00:00
|
|
|
{{ range nomadService 1 (env "NOMAD_ALLOC_ID") "redis-blocky" -}}
|
2022-03-14 22:56:06 +00:00
|
|
|
redis:
|
2023-03-24 23:32:37 +00:00
|
|
|
address: 127.0.0.1:6379
|
2022-06-23 16:51:09 +00:00
|
|
|
# password: ""
|
|
|
|
# database: 0
|
2022-05-19 23:54:16 +00:00
|
|
|
connectionAttempts: 10
|
|
|
|
connectionCooldown: 3s
|
2022-11-12 00:21:17 +00:00
|
|
|
{{ end -}}
|
2022-03-14 22:56:06 +00:00
|
|
|
|
2023-05-09 20:20:36 +00:00
|
|
|
|
|
|
|
{{ range nomadService 1 (env "NOMAD_ALLOC_ID") "mysql-tls" -}}
|
2022-11-21 00:24:00 +00:00
|
|
|
{{ with nomadVar "nomad/jobs/blocky" -}}
|
2022-11-12 00:21:17 +00:00
|
|
|
queryLog:
|
|
|
|
type: mysql
|
2023-05-09 20:20:36 +00:00
|
|
|
target: {{ .db_user }}:{{ .db_pass }}@tcp(127.0.0.1:3306)/{{ .db_name }}?charset=utf8mb4&parseTime=True&loc=Local
|
2022-11-12 00:21:17 +00:00
|
|
|
logRetentionDays: 14
|
2023-02-27 19:52:25 +00:00
|
|
|
{{ end -}}
|
2023-05-09 20:20:36 +00:00
|
|
|
{{ end -}}
|