my gitea is configured with REVERSE_PROXY, and i trying to use the email header.
[service]
ENABLE_REVERSE_PROXY_AUTHENTICATION = true
ENABLE_REVERSE_PROXY_EMAIL = true
ENABLE_REVERSE_PROXY_AUTO_REGISTRATION = true
ENABLE_REVERSE_PROXY_AUTHENTICATION_API = true
[security]
REVERSE_PROXY_AUTHENTICATION_EMAIL = X-WEBAUTH-EMAIL-GITEA, X-Webauth-Email-Gitea
I’m trying to run the following curl with X-Webauth-User:
curl -v -X 'GET' \
'https://gitea-app/api/v1/repos/test/test2/commits' \
-H 'X-Webauth-User: username' \
-H 'accept: application/json'
and its working.
but when i try to use email its not working I’m getting 404.
curl -v -X 'GET' \
'https://gitea-app/api/v1/repos/test/test2/commits' \
-H 'X-Webauth-Email: name.lastname@test.io' \
-H 'accept application/json'
or
curl -v -X 'GET' \
'https://gitea-app/api/v1/repos/test/test2/commits' \
-H 'X-Webauth-Email-Gitea: name.lastname@test.io' \
-H 'accept application/json'
both of them returning 404.
what can be the issue? any idea?