News for hackers. Stuff that matters.
Re:Caddy is the first and only web server to use HTTPS autom... by theshrike79 on Tuesday September 12, 2023 @07:55AM (#37479696)
Wait? Caddy can do all that?

I really need to grab a few beers and check out the documentation, my current docker setup is a cargo-cult traefik label monster I just copied from a friend =)

It works, but I really don't know why or how

Re:Caddy is the first and only web server to use HTTPS autom... by Whitestrake on Tuesday September 12, 2023 @08:46PM (#37490733)
Heck, you could extend it with Caddy Docker Proxy and go right back to the labels-as-configuration method.

https://github.com/lucaslorentz/caddy-docker-proxy

I actually do this, because I kinda like having the proxy config right next to the app config in my Compose file, but I also dislike how much manual configuration Traefik needs. Downside is you need to know how to write Caddyfile (easy enough) and then also know how to write labels so CDP translates them into the correct Caddyfile (also easy enough, but could be annoying if you're learning both at the same time). Upshot is that once you know how it translates and you know what you need to write, it works just like Traefik but with just two labels, and I think that's pretty neat.

Caddy can support a surprising amount of weird and wonderful configurations, too.

Re:Caddy is the first and only web server to use HTTPS autom... by jhot on Tuesday September 12, 2023 @10:57PM (#37491681)
I do this at home. The labels are generally much simpler than traefik.

labels:

  caddy: subdomain.${DOMAIN_NAME}

  caddy.reverse_proxy: "{{upstreams 8000}}"