aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorMax Resnick <max@ofmax.li>2026-09-05 22:42:38 -0700
committerMax Resnick <max@ofmax.li>2026-09-05 22:42:38 -0700
commit24a0e9c7dd9f32553984748c2c5e7d5530c20f27 (patch)
tree32eae716244107bffa4cecd397b09f3b0c048e6e
parent6d8d1654aa327b21cbc927cc1692e2dc79f25597 (diff)
downloadgrumpy-containers-24a0e9c7dd9f32553984748c2c5e7d5530c20f27.tar.gz
fix: resolve tls issue
-rw-r--r--src/unbound-adblock/Dockerfile7
-rwxr-xr-xsrc/unbound-adblock/bin/entrypoint.sh2
-rw-r--r--src/unbound-adblock/etc/ad-zones.conf (renamed from src/unbound-adblock/etc/zones/ad-zones.conf)0
-rw-r--r--src/unbound-adblock/etc/unbound.base.conf6
4 files changed, 8 insertions, 7 deletions
diff --git a/src/unbound-adblock/Dockerfile b/src/unbound-adblock/Dockerfile
index 849feb3..f55d7df 100644
--- a/src/unbound-adblock/Dockerfile
+++ b/src/unbound-adblock/Dockerfile
@@ -1,9 +1,8 @@
-ARG BASE_VER=latest
-FROM public.ecr.aws/x2w2w0z4/base:${BASE_VER}
+ARG BASE_VER=latest
+FROM public.ecr.aws/x2w2w0z4/base:${BASE_VER}
RUN install_deb unbound unbound-anchor
COPY bin/entrypoint.sh /usr/bin/entrypoint.sh
-COPY etc/unbound.base.conf /etc/unbound/unbound.conf.d/unbound.base.conf
-COPY etc/zones/ /etc/unbound/unbound.conf.d/
+COPY etc/*.conf /etc/unbound/unbound.conf.d/
ENTRYPOINT ["/usr/bin/entrypoint.sh"]
diff --git a/src/unbound-adblock/bin/entrypoint.sh b/src/unbound-adblock/bin/entrypoint.sh
index c2577fb..d5f344d 100755
--- a/src/unbound-adblock/bin/entrypoint.sh
+++ b/src/unbound-adblock/bin/entrypoint.sh
@@ -26,4 +26,4 @@ fi
# Start unbound in debug mode
log "Starting unbound daemon..."
-exec /usr/sbin/unbound -d -p $DOPTS
+exec /usr/sbin/unbound -d -p $DOPTS "$@"
diff --git a/src/unbound-adblock/etc/zones/ad-zones.conf b/src/unbound-adblock/etc/ad-zones.conf
index 66b7b54..66b7b54 100644
--- a/src/unbound-adblock/etc/zones/ad-zones.conf
+++ b/src/unbound-adblock/etc/ad-zones.conf
diff --git a/src/unbound-adblock/etc/unbound.base.conf b/src/unbound-adblock/etc/unbound.base.conf
index c0f29a1..92c76db 100644
--- a/src/unbound-adblock/etc/unbound.base.conf
+++ b/src/unbound-adblock/etc/unbound.base.conf
@@ -1,5 +1,3 @@
-include: "/etc/unbound/unbound.conf.d/ad-zones.conf"
-
server:
port: 5353
interface: 0.0.0.0
@@ -16,6 +14,10 @@ server:
qname-minimisation: yes
use-caps-for-id: yes
+ # Required for forward-tls-upstream: without a CA bundle unbound cannot
+ # verify the upstream auth-names and every DoT handshake fails -> SERVFAIL
+ tls-cert-bundle: "/etc/ssl/certs/ca-certificates.crt"
+
num-threads: 1
msg-cache-size: 16m
rrset-cache-size: 32m