Live data from Hacker News

Show HN: Caddy 2

caddyserver.com

101–110 of 247 posts

Re: Show HN: Caddy 2

#101
post #98

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://let…

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.

Re: Show HN: Caddy 2

#104

Is there a quickstart that just goes: do this to make a reverse proxy? i.e. you have a great manual, but I'm looking for a tutorial.

There's a full tutorial on the Documentation section! Start here https://caddyserver.com/docs/getting-started and go through the links listed under "Tutorial" on the left side of the page.

Re: Show HN: Caddy 2

#105

Is there a quickstart that just goes: do this to make a reverse proxy? i.e. you have a great manual, but I'm looking for a tutorial.

I'm afraid I agree with a few sibling comments here, the documentation, although good, still feels a bit light for 2.0 (I recently set up a caddy reverse proxy on a legacy host, in order to be able to avoid an old version of openssl - and decided to go with 2.0 - then in pre-release).

That said, if your needs are simple, the examples are pretty good - a caddy file shouldn't have to be too many lines:

https://caddyserver.com/docs/caddyfile/directives/reverse_pr...

Ed: or see the quick-start section - linked in a sibling comment.

Re: Show HN: Caddy 2

#106
post #98

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://let…

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-...

Re: Show HN: Caddy 2

#107
post #84

Hi @mholt, thanks a lot for Caddy. It is really awesome and we are considering using it for www.mailerlite.com landing pages. The problem that we have right now is that there is no Cloudflare plugin built-in for V2 so it is a show stopper for us. Congrats on the release!

Cloudflare plugin, that does what exactly? You mean like this one? https://github.com/caddy-dns/cloudflare (I'm using it today, works great. Assuming that's what you meant.)

How to use this plugin with a Caddyfile?

Re: Show HN: Caddy 2

#108

Is there a quickstart that just goes: do this to make a reverse proxy? i.e. you have a great manual, but I'm looking for a tutorial.

Yes, we do! Others have linked to it.

Did you see the "Tutorials" section at the top of our docs, along with the quick-start guides, one of which is specifically for reverse proxying? https://caddyserver.com/docs/

Re: Show HN: Caddy 2

#109
This new version looks amazing. I was actually looking at it earlier today. I had to postpone my upgrade because I couldn’t find any alternative or how to include the http.git plugin which I rely on. Any direction in that regard will be appreciated. Congratulation for your work.

Re: Show HN: Caddy 2

#110
I am using Caddy v2 in a Nomad cluster to serve static pages. Works great. Time to upgrade to the final v2. Thanks for a great piece of software.
Post reply on HN