Skip to content

Commit 4aea04d

Browse files
committed
chore(administration): Generate system config documentation from config.sample.php
1 parent 1bcb1e4 commit 4aea04d

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
@@ -874,6 +874,35 @@ Disabling this is discouraged for security reasons.
874874

875875
Defaults to ``true``
876876

877+
ratelimit_overwrite
878+
^^^^^^^^^^^^^^^^^^^
879+
880+
881+
::
882+
883+
'ratelimit_overwrite' => [
884+
'profile.profilepage.index' => [
885+
'user' => ['limit' => 300, 'period' => 3600],
886+
'anon' => ['limit' => 1, 'period' => 300],
887+
]
888+
],
889+
890+
Overwrite the individual rate limit for a specific route
891+
892+
From time to time it can be necessary to extend the rate limit of a specific route,
893+
depending on your usage pattern or when you script some actions.
894+
Instead of completely disabling the rate limit or excluding an IP address from the
895+
rate limit, the following config allows to overwrite the rate limit duration and period.
896+
897+
The first level key is the name of the route. You can find the route name from a URL
898+
using the ``occ router:list`` command of your server.
899+
900+
You can also specify different limits for logged-in users with the ``user`` key
901+
and not-logged-in users with the ``anon`` key. However, if there is no specific ``user`` limit,
902+
the ``anon`` limit is also applied for logged-in users.
903+
904+
Defaults to empty array ``[]``
905+
877906
security.ipv6_normalized_subnet_size
878907
^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
879908

0 commit comments

Comments
 (0)