From 6a2beb5a6a295bd8fa87b14875a73802e8fb5026 Mon Sep 17 00:00:00 2001 From: Vincent Ambo Date: Tue, 21 Apr 2020 03:17:30 +0100 Subject: feat(ops/nixos/camden): Add vhost for TVL homepage --- ops/nixos/camden/default.nix | 15 +++++++++++++++ 1 file changed, 15 insertions(+) (limited to 'ops/nixos') diff --git a/ops/nixos/camden/default.nix b/ops/nixos/camden/default.nix index b941be03c7d1..42f80b7c5759 100644 --- a/ops/nixos/camden/default.nix +++ b/ops/nixos/camden/default.nix @@ -283,6 +283,21 @@ in lib.fix(self: { ''; }; + virtualHosts.tvl = { + serverName = "tvl.fyi"; + useACMEHost = "tvl.fyi"; + root = depot.web.tvl; + addSSL = true; + + extraConfig = '' + add_header Strict-Transport-Security "max-age=31536000; includeSubDomains; preload" always; + + location ~* \.(webp|woff2)$ { + add_header Cache-Control "public, max-age=31536000"; + } + ''; + }; + virtualHosts.cgit = { serverName = "git.tazj.in"; serverAliases = [ "git.camden.tazj.in" ]; -- cgit 1.4.1