feat(forgejo): use LANDING_PAGE instead of 303 redirect

This commit is contained in:
buffet 2024-05-06 17:43:10 +02:00
parent d04f2f59e4
commit 86efc683ed

View file

@ -27,6 +27,7 @@ in {
DOMAIN = "buffets.kitchen"; DOMAIN = "buffets.kitchen";
ROOT_URL = "https://buffets.kitchen/"; ROOT_URL = "https://buffets.kitchen/";
HTTP_PORT = port; HTTP_PORT = port;
LANDING_PAGE = "/chef";
}; };
service = { service = {
@ -65,12 +66,6 @@ in {
forceSSL = true; forceSSL = true;
locations = { locations = {
"= /" = {
extraConfig = ''
return 303 https://$host/chef;
'';
};
"/" = { "/" = {
proxyPass = "http://localhost:${toString port}"; proxyPass = "http://localhost:${toString port}";
}; };