Lurker News

Comments (240) 58 threads

Earlier comments
didip1 reply#
It is nice to see an alternative to Nginx. I am glad that Caddy took a stab at it.

It is good that the author is looking to have some kind of stable monetization too. It's hard enough to maintain OSS from time perspective. I hope that it works out for him.

neop1x#
Not the only alternative. There is also wonderful Traefik and hard-to-config Envoy for example :)
quaffapint1 reply#
I see a mention of using it as an ingress controller, but not much in the docs. Is there more details on this or is this better suited to run in a container as opposed to using nginx for that and leave the ingress to traefik/etc?
zimbatm2 replies#
This is really a side-note. I think Caddy is great.

> Still the only web server to use TLS automatically and by default.
This sounds great at first. It also makes it too easy to hit the Let's encrypt rate-limit by mistake and get stuck for a week. I really think that the default should be to use the staging environment certs[1] instead and have the user actively decide when they are ready to go live.
[1]: https://letsencrypt.org/docs/staging-environment/

francislavoie#
Caddy v2 does this! If an ACME error is encountered, it will continue to retry via the staging endpoint instead until it works.

This won't help if you're throwing away the data storage directory though (i.e. not persisting the volume with Docker), because Caddy won't have a way to keep track of what happened in past runs.

mholt#
We thought of this! As francislavoie said, Caddy's retry logic involves switching to the Let's Encrypt staging endpoint until the DNS resolves properly. That is coupled with exponential backoff.

Hitting the staging endpoint as a test isn't a perfect thing, by the way -- it can help where DNS records are misconfigured, but for things like rate limits or other state internal to the CA server, switching endpoints will only give you a false positive.
So, better to not hit that problem in the first place, and to make sure your DNS records are configured properly first.
You can read more about these best practices here: https://docs.https.dev/acme-ops#avoid-using-a-production-ca-...

JackWritesCode1 reply#
Huge fan of Caddy. The on-demand TLS is incredible.
mholt#
5 years later and it still feels like magic.

(Thank you, Let's Encrypt)

Load more comments