2022-05-19 14:39:52 +00:00
|
|
|
{ depot, ... }:
|
2020-09-30 03:42:59 +00:00
|
|
|
|
|
|
|
{
|
|
|
|
imports = [
|
|
|
|
./base.nix
|
|
|
|
];
|
|
|
|
|
|
|
|
config = {
|
|
|
|
services.nginx.virtualHosts."todo.tvl.fyi" = {
|
|
|
|
serverName = "todo.tvl.fyi";
|
2022-05-19 14:39:52 +00:00
|
|
|
serverAliases = [ "todo.tvl.su" ];
|
|
|
|
root = depot.web.todolist;
|
2020-09-30 03:42:59 +00:00
|
|
|
enableACME = true;
|
|
|
|
forceSSL = true;
|
|
|
|
|
|
|
|
extraConfig = ''
|
|
|
|
add_header Strict-Transport-Security "max-age=31536000; includeSubDomains; preload" always;
|
|
|
|
|
|
|
|
location ~* \.(webp|woff2)$ {
|
|
|
|
add_header Cache-Control "public, max-age=31536000";
|
|
|
|
}
|
|
|
|
'';
|
|
|
|
};
|
|
|
|
};
|
|
|
|
}
|