Skip to content

Commit

Permalink
Fixed incorrect behavior of :BlockedApiPolicy #9742
Browse files Browse the repository at this point in the history
  • Loading branch information
cesarpferreira committed Jul 31, 2023
1 parent f536749 commit fa10475
Showing 1 changed file with 6 additions and 0 deletions.
6 changes: 6 additions & 0 deletions doc/sphinx-guides/source/installation/config.rst
Original file line number Diff line number Diff line change
Expand Up @@ -34,6 +34,12 @@ It is very important to keep the block in place for the "admin" endpoint, and to

It's also possible to prevent file uploads via API by adjusting the :ref:`:UploadMethods` database setting.

If you are using a load balancer or a reverse proxy, there are some additional considerations. If no additional configurations are made and the upstream is configured to redirect to localhost, the API will be accessible from the outside, as your installation will register as origin the localhost for any requests to the endpoints "admin" and "builtin-users". To prevent this, you have two options:

- If your upstream is configured to redirect to localhost, you will need to set the :ref:`JVM option <useripaddresssourceheader>` to one of the following values ``%client.name% %datetime% %request% %status% %response.length% %header.referer% %header.x-forwarded-for%`` and configure from the load balancer side the chosen header to populate with the client IP address.

- Another solution is to set the upstream to the client IP address. In this case no further configuration is needed.

Forcing HTTPS
+++++++++++++

Expand Down

0 comments on commit fa10475

Please sign in to comment.