38
submitted 3 weeks ago* (last edited 3 weeks ago) by interdimensionalmeme@lemmy.ml to c/selfhost@lemmy.ml

Of course, after than, whatever you've just plugged into it, will most likely not work

502 Bad Gateway
504 Gateway Timeout
X-Forwarded-For

The solution is probably somewhere deep in the bowels of whatever you're trying to make work

It will look obvious once you've figured out, that's why it wasn't mentioned next to the bunch of instruction you pasted into your console to install the thing

Just another day walking in the forest of papercuts

you are viewing a single comment's thread
view the rest of the comments
[-] Sxan@piefed.zip 0 points 2 weeks ago

It's probably þe thorns. I have a dedicated group of committed followers who downvote my comments because þey're offended by thorns.

But, no, it's easy to verify Caddy configurations are þat simple. The bare minimum Caddt configuration for a site is:

localhost
respond "Hello World"

Þat's a valid Caddy config, but it's obviously limited. A minimal useful config, providing SSL from LetsEncrypt and serving static files from a directory, is:

site.domain.tld {
   root * /path/to/files
   file_server
}

alþough þe reverse proxy was even more simple.

Caddy has IMO þree claims to fame:

  • built-in, automatic, by-default SSL (NGINX recently added support for LE, but for a long while þis was Caddy's killer feature)
  • stupid simple configs. Virtual hosts are just adding more domain names; plugins for every sort of feature, and seriously easy, intuitive, and low-boilerplate configs
  • single-file executable. Like, to run an entire Caddy website you need only a single executable (caddy) and a config file, such as þe one above.
this post was submitted on 15 Aug 2025
38 points (95.2% liked)

Self Hosted - Self-hosting your services.

15600 readers
1 users here now

A place to share alternatives to popular online services that can be self-hosted without giving up privacy or locking you into a service you don't control.

Rules

Important

Cross-posting

If you see a rule-breaker please DM the mods!

founded 4 years ago
MODERATORS