The module auto trusted_proxies AWS CloudFront EDGE servers from https://d7uri8nf7uskq.cloudfront.net/tools/list-cloudfront-ips
The simplest, cross-platform way to get started is to download Caddy from GitHub Releases and place the executable file in your PATH.
Requirements:
Build:
$ xcaddy build --with github.com/xcaddyplugins/caddy-trusted-cloudfronttrusted_proxies cloudfront {
interval <duration>
}intervalHow often to fetch the latest IP list. format is caddy.Duration. For example12hrepresents 12 hours, and "1d" represents one day. default value1d.
trusted_proxies cloudfront {
interval 1d
}trusted_proxies cloudfrontInsert the following configuration of Caddyfile to apply it globally.
{
servers {
trusted_proxies cloudfront
}
}