feat(ops/nixos/camden): Add vhost for TVL homepage
This commit is contained in:
parent
557b6b0c5b
commit
6a2beb5a6a
1 changed files with 15 additions and 0 deletions
|
@ -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" ];
|
||||
|
|
Loading…
Reference in a new issue