Redirect to OAuth when login to forgejo

This commit is contained in:
Théo Barnouin 2025-01-30 11:04:29 +01:00
parent f9b9da6f31
commit a0384deef0

View file

@ -129,6 +129,9 @@ in {
locations."/" = { locations."/" = {
proxyPass = "http://192.168.1.14:3000"; proxyPass = "http://192.168.1.14:3000";
recommendedProxySettings = true; recommendedProxySettings = true;
extraConfig = ''
rewrite ^/user/login$ /user/oauth2/authentik;
'';
}; };
}; };
"authentik.le43.eu" = { "authentik.le43.eu" = {