The initial purpose of this repo was to interface with Caddy's built-in API...that API is unwieldy so instead we utilize Deno and Hono to make a basic API that:
- creates
.crtand.keycertificate files for a supplied domain - creates a Caddy config of said domain
- reloads Caddy
- Caddy: https://caddyserver.com
- unzip:
brew install unziporapt install unzip -y - Deno:
curl -fsSL https://deno.land/install.sh | shexport DENO_INSTALL="/root/.deno"export PATH="$DENO_INSTALL/bin:$PATH"
.envfile with a strongTOKEN
deno task startdeno task dev# using curl
curl -d '{ "domain": "www.lynk", "ip": "50.116.2.11" }' -H "Content-Type: application/json" -H "Authorization: Bearer TOKEN" -X POST http://localhost:3699/api