Confusion as to where reverse proxy headers go in app.ini #33769
Labels
issue/needs-feedback
For bugs, we need more details. For features, the feature must be described in more detail
type/bug
Description
Hi, in https://docs.gitea.com/usage/authentication#reverse-proxy it states that various settings can be overridden, for example
REVERSE_PROXY_AUTHENTICATION_USER
. It doesn't, however, explicitly state where they should go inapp.ini
. Given that the only section that is referenced is[service]
I naively put them in there.Moving
to the
[security]
section worked.My question is, how am I supposed to know, as a reader, that those headers shouldn't be in the
[service]
section? Happy to do a PR to clarify the wording if that helps?(This is in the context of trying to configure this for Authelia forward auth via Caddy. With the header overrides set in the
[service]
section, Gitea failed to "notice" the authenticated user and so required additional logging in. Moving them to the[security]
section and suddenly the user could login successfully.)Gitea Version
1.22.3
Can you reproduce the bug on the Gitea demo site?
Yes
Log Gist
No response
Screenshots
Git Version
No response
Operating System
No response
How are you running Gitea?
natively in proxmox debian LXC
Database
None
The text was updated successfully, but these errors were encountered: