caddyserver
Interact with the CaddyServer API from Node.JS
Full documentation on the CaddyServer API requests and responses can be found on the CaddyServer website at:
- https://caddyserver.com/docs/api
Install with:
npm i caddyserver
Quick Examples
Get the current configuration:
const CaddyServer = const caddy = host: 'localhost:2019' caddy
Design Goals
The default CaddyServer
will be a light wrapper around the CaddyServer API, providing no extra functionality. Helper functions will be added to submodules, e.g. CaddyServer.Builder
.
API
At the time of speaking, there are three CaddyServer API endpoints.
By default, path
defaults to the root and id
to false
. Id can be used to specify IDs, instead of full paths.
License
MIT