machine-config/bert/services/http/isaacswift.com.nix

24 lines
464 B
Nix
Raw Normal View History

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