webhosting/ docs/ web hosting
setting up your domain
CNAME record for
www.yourdomain.tld. that points to
If you can, create an
ANAME record that points to
fuecoco.doamatto.xyz. If your DNS provider doesn't support either, create an
A record that points to
creating an ed25519 key for rsync
Uploading your website is done over Rsync, which requires a SSH key. The process is slightly different platform to platform. You can see how to create a key via GitHub's documentation.
a basic Caddyfile
For those who are unfamiliar with Caddy, it may be easier to copy-and-paste a strong default. One is provided below.
encode zstd gzip
root * /home/git/yourdomain.tld
It's encouraged, regardless, that you learn the basics of Caddyfile's by looking through Caddy's documentation, but it is not necessary to use the service.
snippets for Caddy
When creating snippets, avoid generic terms like
redirs in favour of scoped (to put unofficially) names like
To make life simpler, there are a few pre-written snippets accessible. You can read more about snippets in the Caddy documentation. These pre-written snippets are :
handle_404— redirects errors to
/404.htmlin your webroot
secure_headers— enables a strict CSP, preloaded HSTS, basic caching, and other security precautions (