-
-
Notifications
You must be signed in to change notification settings - Fork 5.5k
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
Update nginx reverse proxy docs #18922
Conversation
Add additional config lines for the set_header to forward additional information (eg the IP)
|
Edit: I guess that one has a purpose actually so gitea does not receive |
Depends. X-Real-IP is the ip of interest while X-Forwarded-For will contain all the hops (and the last one is typically the ip of interest). What header is used within gitea for logging. If it utilises the X-Forwarded-For then yes X-Real-IP can be dropped |
Codecov Report
@@ Coverage Diff @@
## main #18922 +/- ##
=======================================
Coverage ? 46.58%
=======================================
Files ? 854
Lines ? 122565
Branches ? 0
=======================================
Hits ? 57098
Misses ? 58573
Partials ? 6894 Continue to review full report at Codecov.
|
It is either X-Forwarded-For (semi-standard) or X-Real-IP (non-standard), not both. This should not have landed. |
* giteaofficial/main: Fix page and missing return on unadopted repos API (go-gitea#18848) [skip ci] Updated licenses and gitignores Allow adminstrator teams members to see other teams (go-gitea#18918) Update nginx reverse proxy docs (go-gitea#18922) Don't treat BOM escape sequence as hidden character. (go-gitea#18909) Remove CodeMirror dependencies (go-gitea#18911) Uncapitalize errors (go-gitea#18915) Disable service worker by default (go-gitea#18914) Set is_empty in fixtures (go-gitea#18869) Don't update email for organisation (go-gitea#18905) Correctly link URLs to users/repos with dashes, dots or underscores (go-gitea#18890) Set is_private in fixtures. (go-gitea#18868) Fix team management UI (go-gitea#18886) Update JS dependencies (go-gitea#18898) Fix migration v210 (go-gitea#18892) migrations: add test for importing pull requests in gitea uploader (go-gitea#18752)
Debatable. Maybe dropping X-Real-IP but has that been tested ? |
Add additional config lines for the set_header to forward additional information (eg the IP) Co-authored-by: Lunny Xiao <xiaolunwen@gmail.com>
The present documentation on using nginx includes the bare minimum required ( proxy_pass). However, there are 4 more lines required to ensure gitea receives key header information. This is useful for logs