Live data from Hacker News

Show HN: Caddy 2

caddyserver.com

41–50 of 247 posts

Re: Show HN: Caddy 2

#41
post #2

Awesome! We use Caddy at Sourcegraph ( https://sourcegraph.com/search?q=caddy+repo:%5Egithub%5C.com... ) and love it. Caddy makes it much easier to run our app in local dev (with HTTPS and other nice things).

Same here! We are huge fans of Caddy at Narration Box ( https://narrationbox.com ) and we are considering replacing NGINX completely in our Django production stack. (Currently we only use Caddy for development and staging) The author of Caddy, Matt Holt, is a really great person and is extremely responsive on Twitter and GitHub. Highly recommend checking them out.

I'm really curious your reasons / why you like Caddy over Nginx. Thoughts?

Re: Show HN: Caddy 2

#42
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!

Re: Show HN: Caddy 2

#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

Re: Show HN: Caddy 2

#44
I've started using caddy 2 couple of days ago, I am using Caddyfile because json based configuration looks really awful and is hard to maintain (quick changes take a lot of time). The only problem I've encountered is that you can't turn off TLS for a route using Caddyfile. Why is that?

Re: Show HN: Caddy 2

#47

YESSS so happy there's now an apt install method: echo "deb [trusted=yes] https://apt.fury.io/caddy/ /" | sudo tee -a /etc/apt/sources.list.d/caddy-fury.list apt update && apt install caddy

Yay!

That was my pet project for the past couple weeks, I'm so glad to see people appreciate it!

Re: Show HN: Caddy 2

#48

I liked v1 a whole lot. I'm interested in v2, though I'm extremely skeptical of the additional complexity of the config adapter layer ( https://caddyserver.com/docs/config-adapters ) - I'm more or less sold on having an internal JSON structure with a DSL on top of it (allowing dynamic/programatic config is really interesting), but the idea of having _multiple_ different DSLs or config syntax bindings for it seems a b…

Caddyfile is the primary supported DSL. The rest are nearly 1:1 mappings to the internal JSON with some sugar, except for the nginx config adapter which is a bit special! For example jsonc provides JSON, but with comments.

A few of those are third party maintained, and are plugins. They're listed on that page to point out what's possible.

There's a tutorial for the API in the docs that should give you a good idea of what you can do: https://caddyserver.com/docs/api-tutorial

Re: Show HN: Caddy 2

#49

I've started using caddy 2 couple of days ago, I am using Caddyfile because json based configuration looks really awful and is hard to maintain (quick changes take a lot of time). The only problem I've encountered is that you can't turn off TLS for a route using Caddyfile. Why is that?

You definitely can, just prepend your site address with http:// or use port :80 (the HTTP port).

More info:

- https://caddyserver.com/docs/caddyfile/concepts#addresses

- https://caddyserver.com/docs/automatic-https#overview

Re: Show HN: Caddy 2

#50
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

We've had great fun with Caddy for Version 1 of our custom domains feature.

For Version 2, we've done a lot of work with Matt and the solution we've now reached is:

1. DynamoDB as storage for certificates, allowing sharing between servers without regenerating during an issue with an availability zone

2. Multiple Caddy reverse proxy servers in different regions

3. AWS Global Accelerator to route the user to the closet server to them

It's so great because we can also proxy our CDN through Caddy (yes, it needs to go through the user's custom domain), and we've got insanely fast response times on that.

We've load tested the proxy servers and they can handle an incredible amount, we're very pleased with the solution.

I will be publishing and sharing an article soon, detailing my journey and our final solution.

Post reply on HN