feat(whitby): Serve //corp/website on tvl.su
Change-Id: I21e1ddf9a32568cac8ad2595869ac8670867efa9 Reviewed-on: https://cl.tvl.fyi/c/depot/+/3658 Tested-by: BuildkiteCI Reviewed-by: tazjin <mail@tazj.in>
This commit is contained in:
parent
9cad12aeb7
commit
ce575bf65b
2 changed files with 21 additions and 0 deletions
|
@ -36,6 +36,7 @@ in {
|
|||
"${depot.path}/ops/modules/www/tazj.in.nix"
|
||||
"${depot.path}/ops/modules/www/todo.tvl.fyi.nix"
|
||||
"${depot.path}/ops/modules/www/tvl.fyi.nix"
|
||||
"${depot.path}/ops/modules/www/tvl.su.nix"
|
||||
"${depot.path}/ops/modules/www/wigglydonke.rs.nix"
|
||||
"${pkgs.path}/nixos/modules/services/web-apps/gerrit.nix"
|
||||
];
|
||||
|
|
20
ops/modules/www/tvl.su.nix
Normal file
20
ops/modules/www/tvl.su.nix
Normal file
|
@ -0,0 +1,20 @@
|
|||
{ depot, ... }:
|
||||
|
||||
{
|
||||
imports = [
|
||||
./base.nix
|
||||
];
|
||||
|
||||
config = {
|
||||
services.nginx.virtualHosts."tvl.su" = {
|
||||
serverName = "tvl.su";
|
||||
root = depot.corp.website;
|
||||
enableACME = true;
|
||||
forceSSL = true;
|
||||
|
||||
extraConfig = ''
|
||||
add_header Strict-Transport-Security "max-age=31536000; includeSubDomains; preload" always;
|
||||
'';
|
||||
};
|
||||
};
|
||||
}
|
Loading…
Reference in a new issue