Chandler Swift
0f4b0295c8
Future direction: Have a systemd timer that regens this automatically, and updates the index page accordingly.
21 lines
384 B
Nix
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 = {};
|
|
};
|
|
};
|
|
}
|