New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
setup gitea as oauth idP behind nginx sub-path fail #30680
Comments
Could you provide the detailed steps to reproduce? eg: docker compose files, config files, and operation steps. |
attach file is my env: exclude gitea my_host_ip: 10.168.104.100 change to your env
docker logs demo-gitea-1 |
Thank you for the details. I think I could reproduce it now. And I guess the problem is that Gitea isn't GitHub (in the oauth2 config: And (Gitea doesn't support these GitHub API)
Screenshot of the new 403: |
but case 1 and case 2 use the same provider="github" the different point is if gitea lost user info both of case 1,2 cannot pass now i switch to provider to odic add config to nginx.conf case 1: provider pass oauth to web
|
case 2: location /gitea/
provider="oidc"
proxy_buffers 4 64k; oauth oidc provider worked but even i use this config and change to provider="github" it cannot pass, maybe Authorization header disappear somewhere |
See my comment above: |
Description
i want to setup gitea as oauth idP hebind nginx sub-path, but i get some error message
case 1: setup gitea as oauth idP behind nginx location / , it worked fine and passed auth_request page
case 2: setup gitea as oauth idP behind nginx location /gitea/ ,and got 404 Not Found on gitea, 500 on oauth2-proxy
Gitea Version
1.21.10
Can you reproduce the bug on the Gitea demo site?
Yes
Log Gist
No response
Screenshots
No response
Git Version
No response
Operating System
No response
How are you running Gitea?
run gitea with docker compose
gitea/gitea:1.21.10 as oauth idP
nginx:1.25.4-alpine3.18 as reverse proxy
nginx:1.25.4-alpine3.18 as web target
quay.io/oauth2-proxy/oauth2-proxy:v7.6.0 as base path proxy
quay.io/oauth2-proxy/oauth2-proxy:v7.6.0 as prefix path proxy
Database
SQLite
The text was updated successfully, but these errors were encountered: