2025-02-14 19:09:38 -06:00
|
|
|
{
|
|
|
|
services.caddy.virtualHosts."troop352.us" = {
|
|
|
|
serverAliases = ["www.troop352.us" "troop352-demo.chandlerswift.com"];
|
|
|
|
extraConfig = ''
|
|
|
|
encode zstd gzip
|
|
|
|
file_server
|
|
|
|
root * /srv/www/troop352.us
|
|
|
|
|
2025-02-14 19:15:25 -06:00
|
|
|
@notRoot {
|
|
|
|
not path /
|
|
|
|
not file
|
|
|
|
}
|
|
|
|
redir @notRoot /
|
|
|
|
|
2025-02-14 19:09:38 -06:00
|
|
|
handle_errors {
|
|
|
|
respond "{err.status_code} {err.status_text}"
|
|
|
|
}
|
|
|
|
'';
|
|
|
|
};
|
|
|
|
systemd.tmpfiles.settings."10-troop352-us" = {
|
|
|
|
"/srv/www/troop352.us" = {
|
|
|
|
d = {};
|
|
|
|
};
|
|
|
|
};
|
|
|
|
}
|