machine-config/bert/services/http/0hats.com.nix
Chandler Swift 0f4b0295c8
bert: add 0hats.com
Future direction: Have a systemd timer that regens this automatically,
and updates the index page accordingly.
2024-11-12 10:56:04 -06:00

21 lines
384 B
Nix

{
services.caddy.virtualHosts."0hats.com" = {
serverAliases = ["www.0hats.com"];
extraConfig = ''
encode zstd gzip
file_server
root * /srv/www/0hats.com
handle_errors {
respond "{err.status_code} {err.status_text}"
}
'';
};
systemd.tmpfiles.settings."10-0hats-com" = {
"/srv/www/0hats.com" = {
d = {};
};
};
}