Lurker News

Comments (240) 58 threads

Show all comments

Showing thread 5 of 58

benhoyt1 reply#
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. :-)
mholt#
That systemd file was def. a community effort.

Glad to hear Caddy is working for you!