diff options
| author | yyamashita <yyamashita@hetzner.yyamashita.com> | 2026-07-03 00:40:17 +0900 |
|---|---|---|
| committer | yyamashita <yyamashita@hetzner.yyamashita.com> | 2026-07-03 00:40:17 +0900 |
| commit | c39ec05968656aaa893ed7e4b20b7d5f5ccbe5b5 (patch) | |
| tree | 43547361706d8a696a05996fa944b45cbb92a8be /caddy/Dockerfile | |
| parent | 39d30042f0c9925ad3ba446311128c7e530680ce (diff) | |
Add GeoIP Japan-only filter to forward proxy
Uses caddy-maxmind-geoip module to restrict proxy access to JP IPs.
DB file (GeoLite2-Country.mmdb) must be placed manually on the server.
Filter is inactive when DB file is absent, allowing safe rollout.
Co-Authored-By: Claude Sonnet 4.6 <noreply@anthropic.com>
Diffstat (limited to 'caddy/Dockerfile')
| -rw-r--r-- | caddy/Dockerfile | 4 |
1 files changed, 3 insertions, 1 deletions
diff --git a/caddy/Dockerfile b/caddy/Dockerfile index 295437b..c7f4ac8 100644 --- a/caddy/Dockerfile +++ b/caddy/Dockerfile @@ -1,5 +1,7 @@ FROM caddy:2-builder-alpine AS builder -RUN xcaddy build --with github.com/caddyserver/forwardproxy@caddy2 +RUN xcaddy build \ + --with github.com/caddyserver/forwardproxy@caddy2 \ + --with github.com/porech/caddy-maxmind-geoip FROM caddy:2-alpine COPY --from=builder /usr/bin/caddy /usr/bin/caddy |
