Live data from Hacker News

Show HN: Caddy 2

caddyserver.com

151–160 of 247 posts

Re: Show HN: Caddy 2

#151

I recently switched my site from using Amazon Linux 1 + Apache + manual setup to Amazon Linux 2 + Caddy 2 + automated Ansible setup. The documentation for Caddy 2 wasn't quite 100% at the time, but it looks like it's in much better shape now. But Caddy 2 just worked, and gave me SSL seamlessly out of the box, zero config. Love it! My entire Caddyfile looks like this: giftyweddings.com { encode gzip reverse_proxy loca…

The one thing I found tricky was getting the systemd config file correct (I'm not a Linux pro). Looks like he's addressed that too, with this README and demo systemd config -- nice! https://github.com/caddyserver/dist/tree/master/init

That systemd file was def. a community effort.

Glad to hear Caddy is working for you!

Re: Show HN: Caddy 2

#152
post #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 *.)

How can I best share my config and learnings on this?

Re: Show HN: Caddy 2

#153
post #137

Looks great. I have fond memories of Caddy 1.x, but I keep looking for a reverse proxy that can do social auth to protect selected endpoints (I was betting on Traefik having an easy to setup extension for that, but 2.x has been a challenge in other ways...). Anyone know if Caddy 2 has any such extension beyond the basic auth provider I see in the docs?

Yep! greenpau has been doing a ton of work on authentication modules recently.

See here for a list of some of the plugins we have available so far for Caddy v2: https://caddy.community/t/list-of-caddy-2-modules/7839

A user has been working on an OAuth2 plugin recently: https://caddy.community/t/caddy2-redirect-from-within-caddya...

Re: Show HN: Caddy 2

#155
post #63

Earlier quoted context omitted.

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

How can I best share my config and learnings on this?

The Caddy forum[0] would be one place! If you're writing a tutorial, protips, or anything like that, there's a Wiki category just for that.

[0] https://caddy.community/

Re: Show HN: Caddy 2

#157
post #94

Earlier quoted context omitted.

Sorry for the stupid question, but what is a "memory-safe SSH server"? Thanks!

Not a stupid question, it's not a phrase you hear very often because there isn't... really... one... at all. (Not in mainstream use AFAIK?) Memory safety is a class of guarantees certain software offers you against certain vulnerabilities. Software written in C is generally considered "memory unsafe" since it's hard to write correct C code when managing with memory, so it's easier to find exploits in them that cause…

But what is the value add for Caddy here? Like how the out of box and auto SSL defaults with HTTP.

Apart from memory safety, can the SSH version of caddy impose better defaults that OpenSSH doesn’t right now? Maybe TLS certs, security key support, etc?

Re: Show HN: Caddy 2

#159

Earlier quoted context omitted.

Another piece of feedback: It’s scary to consider using such a crucial piece of software in production when documentation is referred to as “sort of deprecated” and “slightly outdated.”

Because that's the old documentation, from early betas of Caddy v2. The official documentation at https://caddyserver.com/docs/ is up to date, and not deprecated.

Oh! That’s good news. I’m excited to give it a try either way.

Re: Show HN: Caddy 2

#160

I know that HN is usually the first to outrage when a project website is too verbose or does not explain the product, but I just want to take a moment to say WHAT A GREAT WEBSITE Caddy has! - The first screen tells me everything I need to know about what Caddy is and why it stands out - Scroll down on how to setup (hattip to whoever did the angled asciinema embed. Looks so cool) - Every page worth of scroll is exactl…

A new kind of extensible platform for server apps.

How can you infer what Caddy is about from that?

Post reply on HN