initial commit

This commit is contained in:
Squibid 2025-11-09 23:51:40 -05:00
commit 4014d5e658
Signed by: squibid
GPG key ID: BECE5684D3C4005D
30 changed files with 911 additions and 0 deletions

View file

@ -0,0 +1,12 @@
{ ... }:
{
root = "/var/www/5438"; # TODO: make declarative
locations."/" = {
index = "zacharys-guide.pdf";
};
# https
enableACME = true;
forceSSL = true;
}

View file

@ -0,0 +1,31 @@
{ phpsock, pkgs, ... }:
{
serverAliases = ["www.squi.bid"];
root = "/var/www/squi.bid"; # TODO: make declarative
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;
}

View file

@ -0,0 +1,17 @@
{ ... }:
{
root = "/var/www/voidpkgs"; # TODO: make declarative
locations."/" = {
extraConfig = ''
try_files $uri $uri/ =404;
sendfile on;
sendfile_max_chunk 1m;
autoindex on;
'';
};
# https
enableACME = true;
forceSSL = true;
}