pacman -S caddypacman -S gogo install github.com/caddyserver/xcaddy/cmd/xcaddy@latest# 获取最新版本号,其实直接去 GitHub realse 页复制以下就行# 这里转化为脚本是为了方便自动化export version=$(curl -s "https://api.github.com/repos/caddyserver/caddy/releases/latest" | jq -r .tag_name)# 使用 xcaddy 编译~/go/xcaddy build ${version} --output ./caddy_${version} \--with github.com/abiosoft/caddy-exec \--with github.com/caddy-dns/cloudflare \--with github.com/caddy-dns/dnspod \--with github.com/caddy-dns/duckdns \--with github.com/caddy-dns/gandi \--with github.com/caddy-dns/route53 \--with github.com/greenpau/caddy-authorize \--with github.com/greenpau/caddy-auth-portal \--with github.com/greenpau/caddy-trace \--with github.com/hairyhenderson/caddy-teapot-module \--with github.com/kirsch33/realip \--with github.com/porech/caddy-maxmind-geolocation \--with github.com/caddyserver/transform-encoder\--with github.com/mholt/caddy-webdav\--with github.com/greenpau/caddy-git\--with github.com/ysicing/caddy2-geocn~/go/xcaddy build ${version} --output ./caddy_${version} \--with github.com/caddyserver/transform-encoder\--with github.com/ysicing/caddy2-geocnmv caddy_v2.4.6 /usr/bin/caddy
https://caddy.community/t/using-caddy-to-deter-brute-force-attacks-in-wordpress/13579
