mix cf_bouncer.sync (cf_bouncer v0.2.0)

Copy Markdown View Source

Generates a WAF block rule from the Phoenix router, endpoint sockets, and static paths, then pushes it to Cloudflare.

mix cf_bouncer.sync           # sync to Cloudflare
mix cf_bouncer.sync --dry-run # preview expression without pushing
mix cf_bouncer.sync --force   # push even if unchanged

The rule is only updated if the expression has changed.

Required configuration

See CfBouncer module docs.