machine-config/bert/services/http/flintlock.chandlerswift.com.nix

19 lines
531 B
Nix

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