about summary refs log tree commit diff
path: root/ops/modules/www/tvixbolt.tvl.su.nix
diff options
context:
space:
mode:
Diffstat (limited to 'ops/modules/www/tvixbolt.tvl.su.nix')
-rw-r--r--ops/modules/www/tvixbolt.tvl.su.nix19
1 files changed, 19 insertions, 0 deletions
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;
+      '';
+    };
+  };
+}