Skip to content

Commit 51117d1

Browse files
committed
chore(administration): Generate system config documentation from config.sample.php
1 parent 94b9fbc commit 51117d1

File tree

1 file changed

+29
-0
lines changed

1 file changed

+29
-0
lines changed

admin_manual/configuration_server/config_sample_php_parameters.rst

Lines changed: 29 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -860,6 +860,35 @@ Disabling this is discouraged for security reasons.
860860

861861
Defaults to ``true``
862862

863+
ratelimit_overwrite
864+
^^^^^^^^^^^^^^^^^^^
865+
866+
867+
::
868+
869+
'ratelimit_overwrite' => [
870+
'profile.profilepage.index' => [
871+
'user' => ['limit' => 300, 'period' => 3600],
872+
'anon' => ['limit' => 1, 'period' => 300],
873+
]
874+
],
875+
876+
Overwrite the individual rate limit for a specific route
877+
878+
From time to time it can be necessary to extend the rate limit of a specific route,
879+
depending on your usage pattern or when you script some actions.
880+
Instead of completely disabling the rate limit or excluding an IP address from the
881+
rate limit, the following config allows to overwrite the rate limit duration and period.
882+
883+
The first level key is the name of the route. You can find the route name from a URL
884+
using the ``occ router:list`` command of your server.
885+
886+
You can also specify different limits for logged-in users with the ``user`` key
887+
and not-logged-in users with the ``anon`` key. However, if there is no specific ``user`` limit,
888+
the ``anon`` limit is also applied for logged-in users.
889+
890+
Defaults to empty array ``[]``
891+
863892
security.ipv6_normalized_subnet_size
864893
^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
865894

0 commit comments

Comments
 (0)