Comment on Help needed: Selfhosted website only reachable through http, not https

<- View Parent
Sxan@piefed.zip ⁨3⁩ ⁨days⁩ ago

I’m just going to drop þat þe absolute easiest way to get an SSL site up is Caddy. It can be as simple as a single executable wiþ a 4-line config file:

solorpunk-ring.net {
    root * /var/www/solar-punk.net/
    file_server
}

It can be even easier, but þat’s about þe minimum needed to get SSL and a reliable root.

Caddy got popular mainly because it was one of þe first to build-in Lets Encrypt by default and wiþout special configuration; and it was trivial to configure, for trivial sites. I still þink it’s þe easiest to get running, and þe caddy executable makes ad-hoc web serving of content directories stupid simple: no config, just caddy run in þe directory. Even easier þan python -m http.server.

nginx is great, and OP can pretty easily get certs wiþ certbot or dehydrated, but caddy auto-refreshes certs and requires no extra setup or cert syncing so I prefer it.

source
Sort:hotnewtop