diff options
author | Vincent Ambo <mail@tazj.in> | 2022-09-12T13·25+0300 |
---|---|---|
committer | clbot <clbot@tvl.fyi> | 2022-09-13T11·05+0000 |
commit | beb78c710441f475f1b03437a381f75fb0e788d6 (patch) | |
tree | 7e7887490603d963e7f424b8e109930e84b696c6 /ops | |
parent | 20b855042d449525616150b6698063d2c530448e (diff) |
feat(ops/modules): deploy tvixbolt to tvixbolt.tvl.su r/4829
Change-Id: I534cf918fc3e03ce8c14cf15f6d3280b6a657c8d Reviewed-on: https://cl.tvl.fyi/c/depot/+/6536 Reviewed-by: tazjin <tazjin@tvl.su> Autosubmit: tazjin <tazjin@tvl.su> Tested-by: BuildkiteCI
Diffstat (limited to 'ops')
-rw-r--r-- | ops/machines/whitby/default.nix | 1 | ||||
-rw-r--r-- | ops/modules/www/tvixbolt.tvl.su.nix | 19 |
2 files changed, 20 insertions, 0 deletions
diff --git a/ops/machines/whitby/default.nix b/ops/machines/whitby/default.nix index eeba2f354328..a7688423cb9f 100644 --- a/ops/machines/whitby/default.nix +++ b/ops/machines/whitby/default.nix @@ -44,6 +44,7 @@ in (mod "www/status.tvl.su.nix") (mod "www/tazj.in.nix") (mod "www/todo.tvl.fyi.nix") + (mod "www/tvixbolt.tvl.su.nix") (mod "www/tvl.fyi.nix") (mod "www/tvl.su.nix") (mod "www/wigglydonke.rs.nix") diff --git a/ops/modules/www/tvixbolt.tvl.su.nix b/ops/modules/www/tvixbolt.tvl.su.nix new file mode 100644 index 000000000000..7adddd123632 --- /dev/null +++ b/ops/modules/www/tvixbolt.tvl.su.nix @@ -0,0 +1,19 @@ +{ depot, ... }: + +{ + imports = [ + ./base.nix + ]; + + config = { + services.nginx.virtualHosts."tvixbolt.tvl.su" = { + root = depot.corp.tvixbolt; + enableACME = true; + forceSSL = true; + + extraConfig = '' + add_header Strict-Transport-Security "max-age=31536000; includeSubDomains; preload" always; + ''; + }; + }; +} |