32 lines
756 B
Nix
32 lines
756 B
Nix
|
|
{
|
||
|
|
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";
|
||
|
|
'';
|
||
|
|
};
|
||
|
|
};
|
||
|
|
};
|
||
|
|
};
|
||
|
|
};
|
||
|
|
}
|