about summary refs log blame commit diff
path: root/ops/nixos/www/todo.tvl.fyi.nix
blob: 5e1f158e6bbabcc0aa1d489ed3fa6fd31cacf01f (plain) (tree)
1
2
3
4
5
6
7
8
9
10









                                                  
                                        













                                                                                                   
{ config, ... }:

{
  imports = [
    ./base.nix
  ];

  config = {
    services.nginx.virtualHosts."todo.tvl.fyi" = {
      serverName = "todo.tvl.fyi";
      serverAliases = [ "todo.tvl.su" ];
      root = config.depot.web.todolist;
      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";
        }
      '';
    };
  };
}