Add website to nimbus

This commit is contained in:
Jan Kremer 2026-03-26 12:09:06 +01:00
parent f3bb93c783
commit 30cccb51bc
No known key found for this signature in database
2 changed files with 23 additions and 0 deletions

22
modules/nixos/website.nix Normal file
View file

@ -0,0 +1,22 @@
{
systemd.tmpfiles.rules = [
"d /var/www/jankremer.de 755 root root -"
];
services.caddy.virtualHosts."jankremer.de".extraConfig = ''
handle {
root * /var/www/jankremer.de
file_server
@static {
path *.css *.js *.woff2 *.woff *.ttf *.png *.jpg *.jpeg *.svg *.ico *.webp
}
header @static Cache-Control "public, max-age=31536000, immutable"
@html {
path *.html
}
header @html Cache-Control "no-cache"
}
'';
}