Add README
This commit is contained in:
parent
54739cd546
commit
50819ec8c2
1 changed files with 21 additions and 0 deletions
21
README.md
Normal file
21
README.md
Normal file
|
|
@ -0,0 +1,21 @@
|
|||
# crimata-dns
|
||||
|
||||
Small internal API for provisioning DNS on `crimata.com` via Cloudflare — used to give each new Crimata customer a free subdomain, and optionally point a custom domain at their instance.
|
||||
|
||||
## What it does
|
||||
|
||||
- `GET /domains/check?domain=` — check domain availability
|
||||
- `POST /domains` — create a subdomain for a customer, and optionally register + point a custom domain
|
||||
- `DELETE /domains/:recordId` — remove a DNS record
|
||||
|
||||
Built with [Fastify](https://fastify.dev/) + TypeScript, talking to the Cloudflare API.
|
||||
|
||||
## Running it
|
||||
|
||||
```
|
||||
cp .env.example .env # fill in Cloudflare API token, account ID, zone ID
|
||||
npm install
|
||||
npm run dev
|
||||
```
|
||||
|
||||
The included `Dockerfile` builds and runs the compiled version (`npm run build` then `node dist/index.js`).
|
||||
Loading…
Reference in a new issue