mix ex_zip_protect.gen.config (ExZipProtect v0.1.0)

View Source

Generates a starter configuration file for the ex_zip_protect library.

The mix ex_zip_protect.gen.config task will create config/ex_zip_protect.exs populated with sensible defaults for:

  • enabled? – whether bombs are served (default: prod only)
  • rotation – bomb rotation strategy (:none, :random, :round_robin)
  • bypass_header – optional header to skip serving bombs
  • levels – definitions of bomb levels and sources (file, S3, URL)

Usage

mix ex_zip_protect.gen.config

This task will abort if config/ex_zip_protect.exs already exists.