summary refs log tree commit diff stats
path: root/hosts/by-name/server2/configuration.nix
diff options
context:
space:
mode:
authorBenedikt Peetz <benedikt.peetz@b-peetz.de>2024-12-25 18:54:51 +0100
committerBenedikt Peetz <benedikt.peetz@b-peetz.de>2024-12-25 20:02:11 +0100
commit94816c9c63899b936764c9ece659fb6a1044e6e1 (patch)
treeceb93831b394d2425506979436d4da0c08d7333e /hosts/by-name/server2/configuration.nix
parentfix(modules/nix-sync/internal): Fix syntax errors in shell-script (diff)
downloadnixos-server-94816c9c63899b936764c9ece659fb6a1044e6e1.tar.gz
nixos-server-94816c9c63899b936764c9ece659fb6a1044e6e1.zip
feat(modules/nginx): Modularise the redirects and migrate them to server2
The redirects always have an implicit dependency on the DNS config of
the running host. As such, simply stating them for all host is never a
possibility and setting them per host the only viable option.
Diffstat (limited to 'hosts/by-name/server2/configuration.nix')
-rw-r--r--hosts/by-name/server2/configuration.nix7
1 files changed, 6 insertions, 1 deletions
diff --git a/hosts/by-name/server2/configuration.nix b/hosts/by-name/server2/configuration.nix
index f385b55..6d412fa 100644
--- a/hosts/by-name/server2/configuration.nix
+++ b/hosts/by-name/server2/configuration.nix
@@ -20,7 +20,12 @@
       domain = "git.foss-syndicate.org";
       gitolite.adminPubkey = "ssh-ed25519 AAAAC3NzaC1lZDI1NTE5AAAAIME4ZVa+IoZf6T3U08JG93i6QIAJ4amm7mkBzO14JSkz cardno:000F_18F83532";
     };
-    nginx.enable = true;
+    nginx = {
+      enable = true;
+      redirects = {
+        "source.foss-syndicate.org" = "https://git.foss-syndicate.org/vhack.eu/nixos-server";
+      };
+    };
     openssh.enable = true;
     persist = {
       enable = true;