This commit is contained in:
kirbara 2025-12-18 21:32:40 +07:00
parent b8c031f53f
commit 590a7864bc
Signed by: exp
GPG key ID: D7E63AD0019E75D9
2 changed files with 32 additions and 0 deletions

View file

@ -0,0 +1,32 @@
{
den.aspects = {
neru = {
nixos =
{ lib, pkgs, config, ... }:
{
systemd.tmpfiles.rules = [
"d /var/www/experimenting-website 0755 kirbara nginx -"
];
services.nginx.virtualHosts."experimenting.website" = {
forceSSL = true;
enableACME = true;
root = "/var/www/experimenting-website";
locations."/" = {
tryFiles = "$uri $uri/ /index.html";
index = "index.html";
};
locations."/_app/" = {
extraConfig = ''
expires 1y;
add_header Cache-Control "public, immutable";
'';
};
};
};
};
};
}