Cloudflare-backed DNS provisioning API for crimata.com customer subdomains
- TypeScript 93.8%
- Dockerfile 6.2%
| Filename | Latest commit message | Latest commit date |
|---|---|---|
| src | ||
| .DS_Store | ||
| .env.example | ||
| Dockerfile | ||
| LICENSE | ||
| package.json | ||
| README.md | ||
| tsconfig.json | ||
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 availabilityPOST /domains— create a subdomain for a customer, and optionally register + point a custom domainDELETE /domains/:recordId— remove a DNS record
Built with Fastify + 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).