flake-config/hosts/crayon/www/squi.bid.nix
Squibid e20755851c
Forgot to use branches, remember kids: use protection
I'd like less generations please side note:
it's a bit weird that you can't specify how many generations you'd like
to keep, like what if I want 3 generations to stay available?
2026-01-24 22:23:54 -05:00

31 lines
698 B
Nix

{ phpsock, pkgs, ... }:
{
serverAliases = ["www.squi.bid"];
root = "/var/www/squi.bid";
locations = {
"/" = {
tryFiles = "$uri $uri.html $uri/ @extensionless-php";
index = "index.html index.htm index.php";
};
"~ \\.php$" = {
extraConfig = ''
fastcgi_pass unix:${phpsock};
include ${pkgs.nginx}/conf/fastcgi.conf;
expires 3m;
add_header Cache-Control "max-age=180, public";
'';
};
"~* \\.(?:css|js|jpg|png)$" = {
extraConfig = ''
expires 1y;
access_log off;
add_header Cache-Control "max-age=31556952, public";
'';
};
};
# https
enableACME = true;
forceSSL = true;
}