Gitea Version
v1.26.4
What happened?
The current Nginx with a sub-path configuration is not sufficient to allow Gitea to perform authentication via Google OAuth.
Bug: Gitea is redirecting to /login/oauth/ instead of /gitea/login/oauth/
Workaround:
Added the following NGINX configuration:
location ~ ^/login/oauth/ {
rewrite ^/login/oauth/(.*)$ /gitea/login/oauth/$1 permanent;
}
How are you running Gitea?
Nginx with a sub-path
Gitea Version
v1.26.4
What happened?
The current Nginx with a sub-path configuration is not sufficient to allow Gitea to perform authentication via Google OAuth.
Bug: Gitea is redirecting to /login/oauth/ instead of /gitea/login/oauth/
Workaround:
Added the following NGINX configuration:
How are you running Gitea?
Nginx with a sub-path