From e14f9edcb95875e2519461690915ab3e25740e96 Mon Sep 17 00:00:00 2001 From: yyamashita Date: Fri, 3 Jul 2026 00:45:51 +0900 Subject: Restrict proxy to Japan IPs using ipdeny.com CIDR list Downloads jp-aggregated.zone from ipdeny.com at container startup (no account required). Falls back to open access if download fails. Removed caddy-maxmind-geoip module (no longer needed). Co-Authored-By: Claude Sonnet 4.6 --- caddy/Dockerfile | 5 ++--- 1 file changed, 2 insertions(+), 3 deletions(-) (limited to 'caddy/Dockerfile') diff --git a/caddy/Dockerfile b/caddy/Dockerfile index c7f4ac8..e6e20b6 100644 --- a/caddy/Dockerfile +++ b/caddy/Dockerfile @@ -1,9 +1,8 @@ FROM caddy:2-builder-alpine AS builder -RUN xcaddy build \ - --with github.com/caddyserver/forwardproxy@caddy2 \ - --with github.com/porech/caddy-maxmind-geoip +RUN xcaddy build --with github.com/caddyserver/forwardproxy@caddy2 FROM caddy:2-alpine +RUN apk add --no-cache wget COPY --from=builder /usr/bin/caddy /usr/bin/caddy COPY entrypoint.sh /entrypoint.sh RUN chmod +x /entrypoint.sh -- cgit v1.2.3