News for hackers. Stuff that matters.
Re:Caddy 0.10 Released by knrz on Friday April 21, 2017 @08:39AM (#14164969)
I feel like the niche Caddy's trying to fill is for people who don't want to bother with that, or don't want to learn. If you already know how to set up nginx and LE (like you and I do), its only appeal is relatively minor: potentially saving a quarter or half hour.
Re:Caddy 0.10 Released by interfixus on Friday April 21, 2017 @09:08AM (#14165195)
its only appeal is relatively minor

Is that factual, or also something you feel like?

To us simple folks, you know, it looks as if Caddy has a number of use cases where it's a much neater fit than nginx. We like the extreme simplicity and the transparency of it all. Some of us also like the Go it's written in. What with the magic Go modularity, you can actually embed this server in your web-app. Or is it the other way round? Comes in handy, at any rate.

Re:Caddy 0.10 Released by grey-area on Friday April 21, 2017 @10:16AM (#14165791)
What with the magic Go modularity, you can actually embed this server in your web-app. Or is it the other way round? Comes in handy, at any rate.

It's the other way round.

You can embed your app in the server if you want to get its features for free, though given it uses net/http and most of the features are exposed there you should probably just use that directly instead if you are doing anything significant.

Re:Caddy 0.10 Released by knrz on Friday April 21, 2017 @09:20AM (#14165280)
That was a feel. I never thought of the idea of embedding it. Thanks for teaching me more!
Re:Caddy 0.10 Released by overcast on Friday April 21, 2017 @10:21AM (#14165828)
When you're a solo entrepreneur/developer/sysadmin/whateverhatineed hat I need to wear. Streamlining processes as much as possible is a good thing. Using something overly complex, just to use it, is silly. I stumbled upon Caddy, because I was struggling with getting LetsEncrypt setup properly for all my sites on Nginx. Now with a few lines of config, all my sites use, redirect to, and update their certificates automatically. One less piece of bullshit I need to sift through for all the projects I'm working on. In my opinion, something like SSL certificates SHOULD be an automated process.
Re:Caddy 0.10 Released by yjftsjthsd-h on Friday April 21, 2017 @09:19AM (#14165274)
I'm not opposed to learning, but it's like learning emacs when nano legitimately covers all your use cases: potentially useful, but unconvincing ROI. And if we pretend for a moment that it's really only a quarter hour saved, why would I not save that time if all other things are held fixed?

Caddy isn't the universal solution, but it sounds like you're rationalizing using the more complex tool because you know it and have been using it rather than because it's necessarily superior.

Re:Caddy 0.10 Released by atonse on Friday April 21, 2017 @09:32AM (#14165392)
The appeal is huge for a huge number of people. It's an opinionated web server. I've used nginx for probably 6-7 years, and not once have I done something I'd consider that special (I've setup fpm, passenger, gzipping of content, TLS, regenerating my DH param, etc).

Every single thing I've done, could be implemented in an opinionated away by the web server. I'd love to just say "php" and have it do the right thing.

In fact, I'd go as far as to say, it would be amazing if I could just say "proxy ____ drupal" instead of php, and it'll add the drupal rules as well.

Re:Caddy 0.10 Released by andmarios on Friday April 21, 2017 @01:49PM (#14167675)
It all depends on how complex your setup is. Caddy isn't just easy to setup, it is easy to setup every part of it until you reach the end of its functionality.

I can set up both nginx and apache (and get paid for it), I've automated LE for new sites via ansible, etc. Nowadays if I can do with caddy, I just use that and proceed to the next task. Also remember that easy (and short) configuration means easier maintenance.

Devs also love it, they can develop locally using advanced functionality (e.g proxying an API that doesn't provide CORS).

Re:Caddy 0.10 Released by xiphias on Friday April 21, 2017 @08:51AM (#14165072)
I think over time there will be a similar server written in Rust, where at least we can be sure that there are no buffer overflows..until then nginx is probably better in every situation.
Re:Caddy 0.10 Released by coldtea on Friday April 21, 2017 @09:27AM (#14165344)
Unless it uses unsafe code (which Rust also provides) Caddy wouldn't have buffer overflows either, since Go is garbage collected and doesn't allow for the kind of pointer arithmetic C does in normal code.
Re:Caddy 0.10 Released by shawabawa3 on Friday April 21, 2017 @09:04AM (#14165171)
Caddy is written in go, not C, so I'm not sure why it should be especially vulnerable to buffer overflows...
Re:Caddy 0.10 Released by Sphax on Friday April 21, 2017 @09:27AM (#14165341)
Do we really need someone to mention Rust in every thread ?
Re:Caddy 0.10 Released by xiphias on Saturday April 22, 2017 @01:31AM (#14171236)
No, it just makes sense to have a fast and safe HTTP server at the same time.

Go is ona average 3x slower than C according to bechmarks, and it's hard to get rid of this issue because of how the language is architected. I just don't see Caddy as a possible long term replacement for nginx.

Re:Caddy 0.10 Released by afdsadf on Friday April 21, 2017 @12:02PM (#14166736)
As a member of the Rust Evangelism Strike Force, I am morally obligated to. /s
Re:Caddy 0.10 Released by anaganisk on Friday April 21, 2017 @09:32AM (#14165397)
someone had to say it :p
Re:Caddy 0.10 Released by ilogik on Friday April 21, 2017 @09:03AM (#14165160)
why would there be buffer overflows in caddy?