Skip to content

Commit 2fceaf8

Browse files
committed
chore(administration): Generate system config documentation from config.sample.php
1 parent 3a155fd commit 2fceaf8

File tree

1 file changed

+49
-12
lines changed

1 file changed

+49
-12
lines changed

admin_manual/configuration_server/config_sample_php_parameters.rst

Lines changed: 49 additions & 12 deletions
Original file line numberDiff line numberDiff line change
@@ -904,6 +904,35 @@ Whether the rate limit protection shipped with Nextcloud should be enabled or no
904904

905905
Defaults to ``true``
906906

907+
ratelimit_overwrite
908+
^^^^^^^^^^^^^^^^^^^
909+
910+
911+
::
912+
913+
'ratelimit_overwrite' => [
914+
'profile.profilepage.index' => [
915+
'user' => ['limit' => 300, 'period' => 3600],
916+
'anon' => ['limit' => 1, 'period' => 300],
917+
]
918+
],
919+
920+
Overwrite the individual rate limit for a specific route
921+
922+
From time to time it can be necessary to extend the rate limit of a specific route,
923+
depending on your usage pattern or when you script some actions.
924+
Instead of completely disabling the rate limit or excluding an IP address from the
925+
rate limit, the following config allows to overwrite the rate limit duration and period.
926+
927+
The first level key is the name of the route. You can find the route name from a URL
928+
using the ``occ router:list`` command of your server.
929+
930+
You can also specify different limits for logged-in users with the ``user`` key
931+
and not-logged-in users with the ``anon`` key. However, if there is no specific ``user`` limit,
932+
the ``anon`` limit is also applied for logged-in users.
933+
934+
Defaults to empty array ``[]``
935+
907936
security.ipv6_normalized_subnet_size
908937
^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
909938

@@ -2425,15 +2454,16 @@ enabledPreviewProviders
24252454
::
24262455

24272456
'enabledPreviewProviders' => [
2428-
'OC\Preview\BMP',
2429-
'OC\Preview\GIF',
2457+
'OC\Preview\PNG',
24302458
'OC\Preview\JPEG',
2459+
'OC\Preview\GIF',
2460+
'OC\Preview\BMP',
2461+
'OC\Preview\XBitmap',
24312462
'OC\Preview\Krita',
2463+
'OC\Preview\WebP',
24322464
'OC\Preview\MarkDown',
2433-
'OC\Preview\OpenDocument',
2434-
'OC\Preview\PNG',
24352465
'OC\Preview\TXT',
2436-
'OC\Preview\XBitmap',
2466+
'OC\Preview\OpenDocument',
24372467
],
24382468

24392469
Only register providers that have been explicitly enabled
@@ -2445,29 +2475,36 @@ concerns:
24452475
- ``OC\Preview\Font``
24462476
- ``OC\Preview\HEIC``
24472477
- ``OC\Preview\Illustrator``
2478+
- ``OC\Preview\Movie``
24482479
- ``OC\Preview\MP3``
24492480
- ``OC\Preview\MSOffice2003``
24502481
- ``OC\Preview\MSOffice2007``
24512482
- ``OC\Preview\MSOfficeDoc``
2452-
- ``OC\Preview\Movie``
24532483
- ``OC\Preview\PDF``
24542484
- ``OC\Preview\Photoshop``
24552485
- ``OC\Preview\Postscript``
2456-
- ``OC\Preview\SVG``
2486+
- ``OC\Preview\SGI``
24572487
- ``OC\Preview\StarOffice``
2488+
- ``OC\Preview\SVG``
2489+
- ``OC\Preview\TGA``
24582490
- ``OC\Preview\TIFF``
24592491

2492+
The following providers are disabled by default, because they provide an alternative to the built-in providers:
2493+
- ``OC\Preview\Imaginary``
2494+
- ``OC\Preview\ImaginaryPDF``
2495+
24602496
Defaults to the following providers:
24612497

2462-
- ``OC\Preview\BMP``
2463-
- ``OC\Preview\GIF``
2498+
- ``OC\Preview\PNG``
24642499
- ``OC\Preview\JPEG``
2500+
- ``OC\Preview\GIF``
2501+
- ``OC\Preview\BMP``
2502+
- ``OC\Preview\XBitmap``
24652503
- ``OC\Preview\Krita``
2504+
- ``OC\Preview\WebP``
24662505
- ``OC\Preview\MarkDown``
2467-
- ``OC\Preview\OpenDocument``
2468-
- ``OC\Preview\PNG``
24692506
- ``OC\Preview\TXT``
2470-
- ``OC\Preview\XBitmap``
2507+
- ``OC\Preview\OpenDocument``
24712508

24722509
metadata_max_filesize
24732510
^^^^^^^^^^^^^^^^^^^^^

0 commit comments

Comments
 (0)