From f3faeae52aae8a3ab9cd0aee2c2a2ef9c904e483 Mon Sep 17 00:00:00 2001 From: Florian Klink Date: Fri, 23 Feb 2024 16:41:04 +0700 Subject: feat(ops/glesys): add bolt.tvix.dev Make tvixbolt.tvl.su just serve a redirect to the new domain, and fold everything into the tvix.dev.nix module. Change-Id: I3a9ccf37d2ceee8886208d6f662e7598ce395b1a Reviewed-on: https://cl.tvl.fyi/c/depot/+/11015 Reviewed-by: lukegb Reviewed-by: tazjin Autosubmit: flokli Tested-by: BuildkiteCI --- ops/modules/www/tvix.dev.nix | 17 +++++++++++++++++ 1 file changed, 17 insertions(+) (limited to 'ops/modules/www/tvix.dev.nix') diff --git a/ops/modules/www/tvix.dev.nix b/ops/modules/www/tvix.dev.nix index f86f5b3b1e98..33c0bb002c75 100644 --- a/ops/modules/www/tvix.dev.nix +++ b/ops/modules/www/tvix.dev.nix @@ -17,6 +17,23 @@ ''; }; + services.nginx.virtualHosts."bolt.tvix.dev" = { + root = depot.web.tvixbolt; + enableACME = true; + forceSSL = true; + + extraConfig = '' + add_header Strict-Transport-Security "max-age=31536000; includeSubDomains; preload" always; + ''; + }; + + # old domain, serve redirect + services.nginx.virtualHosts."tvixbolt.tvl.su" = { + enableACME = true; + forceSSL = true; + extraConfig = "return 301 https://bolt.tvix.dev$request_uri;"; + }; + services.nginx.virtualHosts."docs.tvix.dev" = { serverName = "docs.tvix.dev"; enableACME = true; -- cgit 1.4.1