Live data from Hacker News

Show HN: Caddy 2

caddyserver.com

61–70 of 247 posts

Re: Show HN: Caddy 2

#61
post #14

Hi HN -- this is what I've been working on for the last 14 months, with the help of many contributors and the backing of several sponsors. (Thank You!) Caddy 2 is a fresh new server experience. Some things might take getting used to, like having every site served over HTTPS unless you specify http:// explicitly in your config. But in general, it will feel familiar to v1 in a lot of ways. If you've used v1 before, I r…

Thanks for the great work - caddy is a much needed breath of fresh air in the server space. One thing I stumbled upon the other day was that I (and google apparently, too) have trouble navigating the new website. I find it much simpler to find relevant information on the old site. Anyway, keep up the good work and stay healthy!

Thanks, we'll work on it! The nav/flow of content could probably be improved.

Not gonna lie though, there's more to learn. V2 is a powerful machine -- so do expect that there will be some reading. Once you know how it works, it's easy to use. Very simple configs are possible, etc.

Re: Show HN: Caddy 2

#62
post #33

Earlier quoted context omitted.

As francislavoie said, the website with its nice one-click custom download page and list of registered plugins is a lot of work. It'll come, but it's not ready yet. Much like the v1 release 5 years ago where the interactive download page didn't come until about a year later, it'll take some time. Hopefully not a full year though. :) I've already got the new build server mostly written -- should be way faster.

Maybe this has changed since I looked at things yesterday, but I couldn't find a list of default plugins anywhere on the website, nor how to configure those default plugins. I think this is what the person you're replying to is talking about. On the old site, there was a plugin documentation page that made it trivial to see what the plugins were called and what options they took. I eventually asked my local copy of C…

The list of core plugins (now called modules) is here: https://caddyserver.com/docs/modules/

If you're navigating from the homepage, click on "Documentation" at the top, then click on "modules" on the left navbar just above "JSON Config Structure". That list is generated directly from the source code, so it is the definite list of what's included by default and supported by the native JSON config.

The other way is, as you found out, to run `caddy list-modules` to get the definitive list of what's packed into the binary.

Re: Show HN: Caddy 2

#63

I just upgraded a server to Caddy 2 this past weekend. It's running a single WordPress site. There were some gotchas in converting the Caddyfile to the new format, but I eventually sorted it out. Caddy 2's method of updating the config made the iteration process a lot faster.

Thanks for sharing your experience!

I'll admit I got bit by a few differences between the v1 Caddyfile and the v2 Caddyfile too. Namely forgetting * at the end of a path _prefix_ matcher. (In Caddy 2, path matches are exact, unless you suffix with a *.)

Re: Show HN: Caddy 2

#64
post #62

Earlier quoted context omitted.

Maybe this has changed since I looked at things yesterday, but I couldn't find a list of default plugins anywhere on the website, nor how to configure those default plugins. I think this is what the person you're replying to is talking about. On the old site, there was a plugin documentation page that made it trivial to see what the plugins were called and what options they took. I eventually asked my local copy of C…

The list of core plugins (now called modules) is here: https://caddyserver.com/docs/modules/ If you're navigating from the homepage, click on "Documentation" at the top, then click on "modules" on the left navbar just above "JSON Config Structure". That list is generated directly from the source code, so it is the definite list of what's included by default and supported by the native JSON config. The other way is, a…

Thanks, this is what I was looking for!

Re: Show HN: Caddy 2

#66
post #39
post #37

Earlier quoted context omitted.

Both, technically. CommonName has been deprecated for years, so all of Caddy's certificates (and all of Let's Encrypt's) are SAN certificates. Caddy manages single-SAN certs, in accordance with recommended best practices: https://docs.https.dev/acme-ops#use-one-name-per-certificate (We learned from experience that single SAN scales better and is less prone to troubles. For example, Caddy sites were not affected by th…

Ah, TIL. I was asking because right now my nginx/certbot setup requests a single certificate for all my domains, and I would like to have them separate. (I'm sure you can do that with certbot, I just haven't tweaked my setup, yet)

I see. Yeah, I think CertBot does that because of limitations in Apache (and possibly nginx as well) with "virtual hosting".

So yeah, Caddy uses one name per certificate by default, and there's no way to change that.

Re: Show HN: Caddy 2

#67
post #43

Hi mholt!, I am building an ecommerce SaaS.Obviously,i will have each domain pointed to my server.Is Caddy a good choice for automatically getting a certificate for each website?Are there any limitations? Thanks!

Yes, it is! Ask Jack Ellis at Fathom Analytics, they're doing this for their customers: https://usefathom.com/blog/bypass-adblockers -- and I think they have a new blog post and video coming out soon about it. Feel free to post in our forums with questions! https://caddy.community

That's awesome to hear!I will be on the look out for their post.

Re: Show HN: Caddy 2

#68
post #14

Hi HN -- this is what I've been working on for the last 14 months, with the help of many contributors and the backing of several sponsors. (Thank You!) Caddy 2 is a fresh new server experience. Some things might take getting used to, like having every site served over HTTPS unless you specify http:// explicitly in your config. But in general, it will feel familiar to v1 in a lot of ways. If you've used v1 before, I r…

What are some of the primary use cases you envision(ed) as well as any that have arisen?

Re: Show HN: Caddy 2

#69
You accidentally a word or two here:

> If the latest OCSP staple indicates that a revocation, Caddy automatically replaces the certificate with a new one.

Re: Show HN: Caddy 2

#70
post #3

At what point does one use Caddy over writing a server with few lines in Go/Node. A bit confused on the use case of Caddy.

Use Caddy wherever you'd otherwise use Apache HTTPD, nginx, IIS, traefik, Kong, etc...

Why traefik? They both seem to be amazing modern web servers
Post reply on HN