833 B
This project is a checker for the Caddy On Demand TLS service. This is intended to be used with Caddy as the server to check if a domain is valid. All domains should be allowed. However, each domain should have a maximum of 100 certificates for it.
ie: example.com, test.example.com, and testing.tester.example.com count as 3 certificates for example.com
The domain should also have a maximum of 5 parts 1.2.3.example.com is valid 1.2.3.4.example.com is not valid
If a domain is already in the database, it should return a 200 and not add it to the database.
As an example: /check?domain=example.com -> 200 & added to database /check?domain=example.com -> 200 /check?domain=1.example.com -> 200 & added to database /check?domain=this.is.a.long.domain.example.com -> 400 ... after 100 domains /check ?domain=100.example.com -> 400