Hacker Newsnew | past | comments | ask | show | jobs | submitlogin

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 localhost:8080  # Go web server
   }

   www.giftyweddings.com {
     redir https://giftyweddings.com{uri} permanent
   }
Also, mholt's "Caddy saves money" quip on the homepage was true in my case. After the switch I was able to downsize my instance to a very small size and save about 50% on my AWS bill, down to less than $10 per month. Not entirely sure it was due to Caddy, but I "blame" it on that anyway. :-)


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!




Guidelines | FAQ | Lists | API | Security | Legal | Apply to YC | Contact

Search: