From f3659e689c54f0608131619dbd93e8cf5c0a52b8 Mon Sep 17 00:00:00 2001 From: buffet Date: Sat, 20 Apr 2024 18:42:27 +0200 Subject: [PATCH] feat(forgejo): redirect to /chef by default to circumvent the landing page --- hosts/ami/forgejo.nix | 6 ++++++ 1 file changed, 6 insertions(+) diff --git a/hosts/ami/forgejo.nix b/hosts/ami/forgejo.nix index 498bf1c..4a856cd 100644 --- a/hosts/ami/forgejo.nix +++ b/hosts/ami/forgejo.nix @@ -34,6 +34,12 @@ in { useACMEHost = "buffet.sh"; forceSSL = true; + locations."= /" = { + extraConfig = '' + return 301 https://$host/chef; + ''; + }; + locations."/" = { proxyPass = "http://localhost:${toString port}"; };