about summary refs log tree commit diff
path: root/ops/modules/www
diff options
context:
space:
mode:
Diffstat (limited to 'ops/modules/www')
-rw-r--r--ops/modules/www/sanduny.tvl.su.nix16
-rw-r--r--ops/modules/www/whitby.tvl.fyi.nix17
2 files changed, 33 insertions, 0 deletions
diff --git a/ops/modules/www/sanduny.tvl.su.nix b/ops/modules/www/sanduny.tvl.su.nix
new file mode 100644
index 000000000000..1a60d06fa062
--- /dev/null
+++ b/ops/modules/www/sanduny.tvl.su.nix
@@ -0,0 +1,16 @@
+# Redirect sanduny.tvl.su to the machine configuration.
+
+{
+  imports = [
+    ./base.nix
+  ];
+
+  config.services.nginx.virtualHosts."sanduny.tvl.su" = {
+    serverName = "sanduny.tvl.su";
+    enableACME = true;
+
+    extraConfig = ''
+      return 302 https://at.tvl.fyi/?q=%2F%2Fops%2Fmachines%2Fsanduny;
+    '';
+  };
+}
diff --git a/ops/modules/www/whitby.tvl.fyi.nix b/ops/modules/www/whitby.tvl.fyi.nix
new file mode 100644
index 000000000000..bcd7a76ec4e8
--- /dev/null
+++ b/ops/modules/www/whitby.tvl.fyi.nix
@@ -0,0 +1,17 @@
+# Redirect whitby.tvl.fyi to the machine configuration.
+
+{
+  imports = [
+    ./base.nix
+  ];
+
+  config.services.nginx.virtualHosts."whitby.tvl.fyi" = {
+    serverName = "whitby.tvl.fyi";
+    serverAliases = [ "whitby.tvl.su" ];
+    enableACME = true;
+
+    extraConfig = ''
+      return 302 https://at.tvl.fyi/?q=%2F%2Fops%2Fmachines%2Fwhitby;
+    '';
+  };
+}