The module auto trusted_proxies GCP CloudCDN EDGE servers
from _cloud-eoips.googleusercontent.com
TXT record
Doc: https://cloud.google.com/cdn/docs/set-up-external-backend-internet-neg
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-gcp-cloudcdn
trusted_proxies gcp_cloudcdn {
interval <duration>
}
interval
How often to fetch the latest IP list. format is caddy.Duration. For example12h
represents 12 hours, and "1d" represents one day. default value1d
.
trusted_proxies gcp_cloudcdn {
interval 1d
}
trusted_proxies gcp_cloudcdn
Insert the following configuration of Caddyfile
to apply it globally.
{
servers {
trusted_proxies gcp_cloudcdn
}
}