Documentation ¶
Index ¶
Constants ¶
View Source
const (
FETCH_URL = "https://d7uri8nf7uskq.cloudfront.net/tools/list-cloudfront-ips"
)
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type CaddyTrustedCloudFront ¶
type CaddyTrustedCloudFront struct { // Interval to update the trusted proxies list. default: 1d Interval caddy.Duration `json:"interval,omitempty"` // contains filtered or unexported fields }
The module that auto trusted_proxies `AWS CloudFront EDGE servers` from CloudFront. Doc: https://docs.aws.amazon.com/AmazonCloudFront/latest/DeveloperGuide/LocationsOfEdgeServers.html Range from: https://d7uri8nf7uskq.cloudfront.net/tools/list-cloudfront-ips
func (CaddyTrustedCloudFront) CaddyModule ¶
func (CaddyTrustedCloudFront) CaddyModule() caddy.ModuleInfo
func (*CaddyTrustedCloudFront) GetIPRanges ¶
func (s *CaddyTrustedCloudFront) GetIPRanges(_ *http.Request) []netip.Prefix
func (*CaddyTrustedCloudFront) Provision ¶
func (s *CaddyTrustedCloudFront) Provision(ctx caddy.Context) error
func (*CaddyTrustedCloudFront) UnmarshalCaddyfile ¶
func (m *CaddyTrustedCloudFront) UnmarshalCaddyfile(d *caddyfile.Dispenser) error
UnmarshalCaddyfile implements caddyfile.Unmarshaler. Syntax:
cloudfront { interval <duration> }
type CloudFrontIPSource ¶
Click to show internal directories.
Click to hide internal directories.