News for hackers. Stuff that matters.
Re:Self-Hosting Dozens of Web Applications and Services on a... by dkryptr on Friday December 31, 2021 @12:11PM (#29750008)
Traefik is great, but their documentation is awful IMO. I moved to Caddy which I prefer currently.
Re:Self-Hosting Dozens of Web Applications and Services on a... by rstat1 on Friday December 31, 2021 @01:46PM (#29751115)
To be fair, Caddy's docs aren't great either. Last time I tried to deploy it to give SSL to something that didn't have it, took me 2 hrs to figure out the docs enough to get it working.
Re:Self-Hosting Dozens of Web Applications and Services on a... by abdusco on Friday December 31, 2021 @01:48PM (#29751139)
Caddy 1 docs felt handcrafted for each use case it supports, whereas Caddy 2 documentation feels generated, except for a couple of pages, which is enough to cover 99% of my needs.
Re:Self-Hosting Dozens of Web Applications and Services on a... by rstat1 on Friday December 31, 2021 @02:02PM (#29751291)
Yes exactly.

I also think Caddy 1 was just simpler to use in general, so it didn't matter as much. But I don't have much experience with that version, so could be wrong.

Re:Self-Hosting Dozens of Web Applications and Services on a... by mholt on Friday December 31, 2021 @11:37PM (#29755567)
What could make the docs better? What solved your problem?
Re:Self-Hosting Dozens of Web Applications and Services on a... by rstat1 on Monday January 03, 2022 @03:22AM (#29778527)
Time and trial-and-error is what eventually solved it.

I was trying to configure the auto-HTTPS functionality to use DNS challenges, because my setup forbids any of the others, and this apparently requires plugins that are only supported by community efforts, so that's probably why I had such an issue.

The docs around configuring this were not immediately clear to me. Its like one part is over in this corner, the other over there. And the part about DNS provider plugins is off in a completely different direction. I definitely think things could be better organized. Also your one tutorial for getting HTTPS support only mentions the very basic cases. I think it'd be beneficial to see some more advanced tutorials using for instance some of the other LE challenge methods, something like this definitely would've saved me some time.

Re:Self-Hosting Dozens of Web Applications and Services on a... by anderspitman on Friday December 31, 2021 @01:47PM (#29751126)
Definitely for people getting started with self hosting I would recommend Caddy.
Re:Self-Hosting Dozens of Web Applications and Services on a... by abdusco on Friday December 31, 2021 @01:47PM (#29751119)
I love & use caddy for proxying to Docker containers + other services running outside Docker.

I wish there were an easier way to bind docker ports to Caddy automatically (without using dokku et al.), but for now I maintain a Caddyfile. Which, thinking of it, doesn't even require setting up a janky script for the rare times when I need to host a new service & modify the config.

I guess there's no reason to make things harder for myself 6 months in the future.

Related: https://xkcd.com/1205/