Veil is a Caddy module that provides API management capabilities, including subscription-based access control and request validation. It acts as a middleware that validates API requests based on subscription levels and required headers.
Below is a small recording of the terminal we onboard the Dummy JSON API and put it behind veil.
- Subscription-based access control
- Request header validation
- API usage statistics tracking
- Dynamic API onboarding
- SQLite database storage
- Clone the project
- Veil depends on go, xcaddy, and whatever platform specific
C
compilation tools you'll need to compile withCGO_ENABLED=1
. 2.1 Setup scripts have been provided for some platforms - macOS - The Makefile has the commands required for you to get around to working with Veil.
For a detailed setup guide please refer setup docs
Refer the base Caddyfile for the config around registering Veil at port 2020.
db_path
: Path to the SQLite database file (default: "veil.db")