about summary refs log tree commit diff
path: root/ops
diff options
context:
space:
mode:
authorVincent Ambo <mail@tazj.in>2021-04-02T10·52+0200
committertazjin <mail@tazj.in>2021-04-02T11·10+0000
commit817cd6f166af88b73ff7b80e7e70a0689951f731 (patch)
tree76460cc586274775e3b4b370b65a79fa0e3f12bb /ops
parentdb80c2d368c8ffae3e9d802245c505d5ca58e73f (diff)
feat(ops/nixos/www): Enable tvl.su aliases for dev tools r/2401
This is not for the domain root though, as that's going to be
something else eventually.

The canonical URLs are the .fyi ones (at least for now), and some of
these tools will eventually generate links that make user sessions
started from *.tvl.su converge on *.tvl.fyi.

Relates to b/98

Change-Id: I1c3bcf72a3063059002e4b0bdd57c269a410a8bc
Reviewed-on: https://cl.tvl.fyi/c/depot/+/2758
Reviewed-by: sterni <sternenseemann@systemli.org>
Tested-by: BuildkiteCI
Diffstat (limited to 'ops')
-rw-r--r--ops/nixos/www/b.tvl.fyi.nix1
-rw-r--r--ops/nixos/www/cl.tvl.fyi.nix1
-rw-r--r--ops/nixos/www/code.tvl.fyi.nix1
-rw-r--r--ops/nixos/www/cs.tvl.fyi.nix1
-rw-r--r--ops/nixos/www/todo.tvl.fyi.nix1
5 files changed, 5 insertions, 0 deletions
diff --git a/ops/nixos/www/b.tvl.fyi.nix b/ops/nixos/www/b.tvl.fyi.nix
index 3d8a4068aa11..9bbdcd22aed6 100644
--- a/ops/nixos/www/b.tvl.fyi.nix
+++ b/ops/nixos/www/b.tvl.fyi.nix
@@ -8,6 +8,7 @@
   config = {
     services.nginx.virtualHosts."b.tvl.fyi" = {
       serverName = "b.tvl.fyi";
+      serverAliases = [ "b.tvl.su" ];
       enableACME = true;
       forceSSL = true;
 
diff --git a/ops/nixos/www/cl.tvl.fyi.nix b/ops/nixos/www/cl.tvl.fyi.nix
index bcaab85f0227..d0aac1b0980f 100644
--- a/ops/nixos/www/cl.tvl.fyi.nix
+++ b/ops/nixos/www/cl.tvl.fyi.nix
@@ -8,6 +8,7 @@
   config = {
     services.nginx.virtualHosts.gerrit = {
       serverName = "cl.tvl.fyi";
+      serverAliases = [ "cl.tvl.su" ];
       enableACME = true;
       forceSSL = true;
 
diff --git a/ops/nixos/www/code.tvl.fyi.nix b/ops/nixos/www/code.tvl.fyi.nix
index e16c0512d962..18962be6bb59 100644
--- a/ops/nixos/www/code.tvl.fyi.nix
+++ b/ops/nixos/www/code.tvl.fyi.nix
@@ -8,6 +8,7 @@
   config = {
     services.nginx.virtualHosts.cgit = {
       serverName = "code.tvl.fyi";
+      serverAliases = [ "code.tvl.su" ];
       enableACME = true;
       forceSSL = true;
 
diff --git a/ops/nixos/www/cs.tvl.fyi.nix b/ops/nixos/www/cs.tvl.fyi.nix
index ed2adcbf8294..fac814baf064 100644
--- a/ops/nixos/www/cs.tvl.fyi.nix
+++ b/ops/nixos/www/cs.tvl.fyi.nix
@@ -8,6 +8,7 @@
   config = {
     services.nginx.virtualHosts."cs.tvl.fyi" = {
       serverName = "cs.tvl.fyi";
+      serverAliases = [ "cs.tvl.su" ];
       enableACME = true;
       forceSSL = true;
 
diff --git a/ops/nixos/www/todo.tvl.fyi.nix b/ops/nixos/www/todo.tvl.fyi.nix
index 0820d136d295..5e1f158e6bba 100644
--- a/ops/nixos/www/todo.tvl.fyi.nix
+++ b/ops/nixos/www/todo.tvl.fyi.nix
@@ -8,6 +8,7 @@
   config = {
     services.nginx.virtualHosts."todo.tvl.fyi" = {
       serverName = "todo.tvl.fyi";
+      serverAliases = [ "todo.tvl.su" ];
       root = config.depot.web.todolist;
       enableACME = true;
       forceSSL = true;