feat(ops/nixos/camden): Add vhost for TVL homepage

This commit is contained in:
Vincent Ambo 2020-04-21 03:17:30 +01:00
parent 557b6b0c5b
commit 6a2beb5a6a

View file

@ -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 = { virtualHosts.cgit = {
serverName = "git.tazj.in"; serverName = "git.tazj.in";
serverAliases = [ "git.camden.tazj.in" ]; serverAliases = [ "git.camden.tazj.in" ];