bert: Add www redirect for stjohnscccc.org

This commit is contained in:
Chandler Swift 2025-02-08 12:05:33 -06:00
parent 384f965b3b
commit a0ed02d158
Signed by: chandlerswift
GPG key ID: A851D929D52FB93F

View file

@ -15,7 +15,9 @@
};
# phpEnv."PATH" = lib.makeBinPath [ pkgs.php ];
};
services.caddy.virtualHosts."stjohnscccc.org".extraConfig = ''
services.caddy.virtualHosts."stjohnscccc.org" = {
serverAliases = ["www.stjohnscccc.org"];
extraConfig = ''
root * /srv/www/stjohnscccc.org/public
redir /downloads /downloads/
@ -37,6 +39,7 @@
respond "{err.status_code} {err.status_text}"
}
'';
};
users.users.stjohnscccc = {
isSystemUser = true;
home = "/srv/www/stjohnscccc.org";