You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Add reverseproxy auth for API back with default disabled (#26703)
This feature was removed by #22219 to avoid possible CSRF attack.
This PR takes reverseproxy auth for API back but with default disabled.
To prevent possbile CSRF attack, the responsibility will be the
reverseproxy but not Gitea itself.
For those want to enable this `ENABLE_REVERSE_PROXY_AUTHENTICATION_API`,
they should know what they are doing.
---------
Co-authored-by: Giteabot <[email protected]>
Copy file name to clipboardExpand all lines: docs/content/administration/config-cheat-sheet.en-us.md
+2-1Lines changed: 2 additions & 1 deletion
Original file line number
Diff line number
Diff line change
@@ -621,7 +621,8 @@ And the following unique queues:
621
621
BASIC and the user's password. Please note if you disable this you will not be able to access the
622
622
tokens API endpoints using a password. Further, this only disables BASIC authentication using the
623
623
password - not tokens or OAuth Basic.
624
-
-`ENABLE_REVERSE_PROXY_AUTHENTICATION`: **false**: Enable this to allow reverse proxy authentication.
624
+
-`ENABLE_REVERSE_PROXY_AUTHENTICATION`: **false**: Enable this to allow reverse proxy authentication for web requests
625
+
-`ENABLE_REVERSE_PROXY_AUTHENTICATION_API`: **false**: Enable this to allow reverse proxy authentication for API requests, the reverse proxy is responsible for ensuring that no CSRF is possible.
625
626
-`ENABLE_REVERSE_PROXY_AUTO_REGISTRATION`: **false**: Enable this to allow auto-registration
626
627
for reverse authentication.
627
628
-`ENABLE_REVERSE_PROXY_EMAIL`: **false**: Enable this to allow to auto-registration with a
0 commit comments