diff options
author | Vincent Ambo <mail@tazj.in> | 2021-09-30T20·12+0300 |
---|---|---|
committer | tazjin <mail@tazj.in> | 2021-10-01T15·24+0000 |
commit | ce575bf65bb73a8e55a26701879a39b52d67c200 (patch) | |
tree | f1396d33d9b245ae1d6f9d1d078f57781e49e63c /ops/modules | |
parent | 9cad12aeb79e3b45fad012e5f93919c2ec25278f (diff) |
feat(whitby): Serve //corp/website on tvl.su r/2941
Change-Id: I21e1ddf9a32568cac8ad2595869ac8670867efa9 Reviewed-on: https://cl.tvl.fyi/c/depot/+/3658 Tested-by: BuildkiteCI Reviewed-by: tazjin <mail@tazj.in>
Diffstat (limited to '')
-rw-r--r-- | ops/modules/www/tvl.su.nix | 20 |
1 files changed, 20 insertions, 0 deletions
diff --git a/ops/modules/www/tvl.su.nix b/ops/modules/www/tvl.su.nix new file mode 100644 index 000000000000..a7c4f6a21721 --- /dev/null +++ b/ops/modules/www/tvl.su.nix @@ -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; + ''; + }; + }; +} |