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}"; };