From a855c715758c67b92ada7523651ef6e1e305e7a5 Mon Sep 17 00:00:00 2001 From: Jake Hamilton Date: Tue, 20 Aug 2024 15:38:54 -0700 Subject: [PATCH] feat: aux.computer redirects --- systems/x86_64-linux/codex/default.nix | 11 +++++++---- 1 file changed, 7 insertions(+), 4 deletions(-) diff --git a/systems/x86_64-linux/codex/default.nix b/systems/x86_64-linux/codex/default.nix index 949d472..8372e7b 100644 --- a/systems/x86_64-linux/codex/default.nix +++ b/systems/x86_64-linux/codex/default.nix @@ -7,6 +7,7 @@ { pkgs , modulesPath , config +, lib , ... }: { imports = [ @@ -85,17 +86,19 @@ virtualHosts = { "aux.computer" = { enableACME = true; - locations."/".return = "308 https://auxolotl.org/$request_uri"; + forceSSL = true; + globalRedirect = "auxolotl.org"; + redirectCode = 308; }; - "forum.aux.computer" = { enableACME = true; - locations."/".return = "308 https://forum.auxolotl.org/$request_uri"; + forceSSL = true; + globalRedirect = "forum.auxolotl.org"; + redirectCode = 308; }; }; }; }; - system.stateVersion = "23.11"; }