caddy webserver and low-effort dark mode for writefreely or write.as

low-effort dark mode:

@media (prefers-color-scheme: dark) {
    body {
        background: black;
        filter: invert(1);
    }
}

caddy webserver config:

blog.example.com {
	encode zstd gzip
	root /srv/writefreely/static
	reverse_proxy localhost:8080
}