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

27 lines
617 B
Nix

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