Documentation
¶
Index ¶
Constants ¶
View Source
const (
DefaultInterval = caddy.Duration(time.Minute)
)
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type DNSRange ¶
type DNSRange struct {
// A list of DNS names to look up.
Hosts []string `json:"hosts,omitempty"`
// The refresh interval. Defaults to DefaultInterval.
Interval caddy.Duration `json:"interval,omitempty"`
// contains filtered or unexported fields
}
DNSRange provides a range of IP addresses associated with a DNS name. Each range will only contain a single IP.
func (*DNSRange) CaddyModule ¶
func (d *DNSRange) CaddyModule() caddy.ModuleInfo
CaddyModule returns the Caddy module information.
func (*DNSRange) GetIPRanges ¶
func (*DNSRange) UnmarshalCaddyfile ¶
UnmarshalCaddyfile implements caddyfile.Unmarshaler.
Example config, if you're running cloudflared on the same Docker bridge network as Caddy:
trusted_proxies dns cloudflared {
# Explicitly set the default value.
interval 1m
}
Alternative syntax:
trusted_proxies dns {
host cloudflared
# Explicitly set the default value.
interval 1m
}
Multiple host names are supported, all on the same line and/or in multiple host directives.
Click to show internal directories.
Click to hide internal directories.