about summary refs log tree commit diff
path: root/ops/nixos/www/todo.tvl.fyi.nix
diff options
context:
space:
mode:
authorVincent Ambo <mail@tazj.in>2020-07-19T23·38+0100
committertazjin <mail@tazj.in>2020-07-19T23·40+0000
commit406e37fde1d7f905ccb377f4ab9a857b750e372e (patch)
tree8542b9b5eab8c0119b2d8bbbc2790c244cccef34 /ops/nixos/www/todo.tvl.fyi.nix
parent259750277a67bcc89377cbe9456c463cb3f5a59a (diff)
feat(whitby): Deploy todo.tvl.fyi page with //web/todolist r/1405
Note that this is not yet updated automatically, so the page will be
stale until somebody rebuilds whitby.

Change-Id: I91f4b03c9309aed289df055fac292a214dca7668
Reviewed-on: https://cl.tvl.fyi/c/depot/+/1297
Reviewed-by: Alyssa Ross <hi@alyssa.is>
Tested-by: BuildkiteCI
Diffstat (limited to 'ops/nixos/www/todo.tvl.fyi.nix')
-rw-r--r--ops/nixos/www/todo.tvl.fyi.nix24
1 files changed, 24 insertions, 0 deletions
diff --git a/ops/nixos/www/todo.tvl.fyi.nix b/ops/nixos/www/todo.tvl.fyi.nix
new file mode 100644
index 000000000000..0820d136d295
--- /dev/null
+++ b/ops/nixos/www/todo.tvl.fyi.nix
@@ -0,0 +1,24 @@
+{ config, ... }:
+
+{
+  imports = [
+    ./base.nix
+  ];
+
+  config = {
+    services.nginx.virtualHosts."todo.tvl.fyi" = {
+      serverName = "todo.tvl.fyi";
+      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";
+        }
+      '';
+    };
+  };
+}