19 comments

[ 3.9 ms ] story [ 42.5 ms ] thread
Caddy is excellent. Great on you, Matt for giving up some control.
https://caddyserver.com/

> The Ultimate Server

> makes your sites more secure, more reliable, and more scalable than any other solution.

Is this an alternative to nginx or something?

Everyone I know has used Caddy by default for so long now that I'd describe Nginx as an alternative to Caddy, at this point.
I like Caddy. Good to see it evolve. Hope it works well
It’s nice to see the responsibility spread across more people, open source projects live and die by their maintainers.

As a note, Caddy is one of those tools which hits the 80-90% of functionality with 50% of the complexity.

For both my homelab and hobby projects it just works. Its configuration is sane and well documented.

I highly recommend giving it a try.

For me it's been 95% and 5%. Caddy is great!
Caddy rules, i can't imagine using anything else for the kind of projects I'm usually involved with.
For those on the fence, imagine Nginx, but with all the defaults set to what you’d have them on in the first place.

Here’s a complete configuration file for a Wordpress site with a LetsEncrypt TLS cert, static files, and PHP executed via FastCGI:

  example.com {
    root * /var/www/wordpress
    php_fastcgi unix//run/php/php-version-fpm.sock
    file_server
  }
That’s it. That’s the whole thing. All the other settings are adjustable, but have the default values you’d configure yourself if you wanted to dig in and tweak it.

I appreciate Caddy immensely. It doesn’t do anything Nginx can’t do, as far as I know, but it’s a whole lot more ergonomic while doing it.

community management is hard, good luck
>Now, the project is so stable and mature that most bugs require extensive explaining and troubleshooting, and very specific configurations, to reproduce.

There still remains this simple to reproduce bug where the page doesn't load of you use the full domain name of a site.

https://caddyserver.com./

Free software needs to find a way to encourage people to contribute so that maintainers get paid.

Caddy has been great!

Will contributors get paid too?
Maybe it's time to try Flattr again?

(And this time with a solid option for companies too!)

I've had a really good time with Caddy on a hobby project over the past 7 years on a digital ocean droplet.

Automatic HTTPS, multiple domains, proxying specific routes to local services, etc etc, managed by one extremely legible config file.

I've had literally one service failure over that period, and it was my own error after running upgrades of the droplet's operating system.

Highly recommended.

Congrats to Mike on growing the project to the point where he can responsibly take a hand off the wheel now and then. And thank you!

> Congrats to Mike...

It's actually Matt :)

I want to use Caddy as an ingress or gateway in Kubernetes.

I have not configured lone servers in a long long time

Hey HN. Thanks for all the love and feedback. It's kind of a bittersweet decision; turning off notifications feels like closing your windows so you have to deliberately go outside to see what's going on. I like having the windows open. But too much was blowing in! Now I can better manage what I take on.

Anyway, I'm hoping this will help the project scale better on the development side. The community has shown that it can be responsible. Thanks for being a great part of it over the last 10+ years.

This really hits home, since I’m working on trying to achieve similar spread of maintainership on pyinfra[1] (which I note is much less popular than Caddy). But all the same issues and out of control GH notifications. Hope this goes well, Caddy is awesome software!

[1] https://github.com/pyinfra-dev/pyinfra