273 | 2025-12-05 08:54:25 UTC

Caddy

Ich will mir die Tage mal den Caddy Webserver angucken.. der macht angeblich die ganze Verschlüsselung automatisch.. klingt interessant.. habe den bei Uberspace im Blog entdeckt.. und meine Distro bietet den an.. also mal schauen


Update (9.4.2026): Habe den jetzt bei allen Websites im Einsatz.. die Konfiguration (/etc/caddy/Caddyfile) ist recht platzsparend. Z.Bsp. für meine Friendica-Instanz, sieht die so aus:

boerdica.de {
	# Block list based on apache image's .htaccess, and not so public content
	@blocked {
		path .out .log .back .swp core .git .htaccess CHANGELOG LICENSE VERSION .conf *.txt *.md *.mdown /.* *.lock *.sql /bin/* /spec/* /config/* /doc/* /mods/* /static/*
	}
	respond @blocked 404

	# Enable compression for JS/CSS/HTML bundle, for improved client load times.
	encode gzip

	root * /var/www/boerdica.de
	encode
	try_files {path} /index.php?pagename={path}&{query}
	php_fastcgi localhost:9000
	file_server
	log {
		output file /var/log/caddy/boerdica.de-access.log
	}
}