website
This commit is contained in:
parent
b8c031f53f
commit
590a7864bc
2 changed files with 32 additions and 0 deletions
|
|
@ -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";
|
||||
'';
|
||||
};
|
||||
};
|
||||
};
|
||||
};
|
||||
};
|
||||
}
|
||||
Loading…
Add table
Add a link
Reference in a new issue