Skip to content

Latest commit

 

History

History
21 lines (15 loc) · 785 Bytes

README.md

File metadata and controls

21 lines (15 loc) · 785 Bytes

trusted_proxy module for caddy

This module retrieves cloudflare ips from their offical website, ipv4 and ipv6. It is supported from caddy v2.6.3 onwards.

Example config

Put following config in global options under corresponding server options

trusted_proxies cloudflare {
    interval 12h
    timeout 15s
}

Defaults

Name Description Type Default
interval How often cloudflare ip lists are retrieved duration 1h
timeout Maximum time to wait to get a response from cloudflare duration no timeout