Hacker News new | ask | show | jobs
by tweetle_beetle 2103 days ago
I'd only ever used Caddy for a hobby project a few years ago. Just recently I needed something quickly for a reverse proxy. I looked at traefik because I'd heard a lot about it and quickly came to the same conclusion as you - too rich. I thought I'd have a look at the docs for the new-ish Caddy v2.

After a bit of reading, I was shocked that I had set up a reverse proxy with just a single 2 line "caddyfile":

  subdomain.mydomain.ltd

  reverse_proxy 127.0.0.1:5000
For my humble use case it couldn't be any simpler.
1 comments

I can make it simpler:

    $ caddy reverse-proxy --from subdomain.mydomain.tld --to 127.0.0.1:5000
Is equivalent, no config file needed :)