2021-03-14 10:45:42 +01:00
|
|
|
<?php
|
|
|
|
|
|
2021-08-04 13:13:51 +02:00
|
|
|
use App\Lib\Helper;
|
|
|
|
|
|
2021-03-14 10:45:42 +01:00
|
|
|
return [
|
|
|
|
|
/**
|
|
|
|
|
* Api versions
|
|
|
|
|
** this value is sent in response
|
|
|
|
|
*/
|
2021-08-04 13:13:51 +02:00
|
|
|
'version' => Helper::getPackageInfo()['version'],
|
2021-03-14 10:45:42 +01:00
|
|
|
|
|
|
|
|
/**
|
|
|
|
|
* Api Token timeout in minutes
|
|
|
|
|
*/
|
2021-08-04 09:42:48 +02:00
|
|
|
'tokenTimeout' => 60,
|
|
|
|
|
|
|
|
|
|
/**
|
|
|
|
|
* The number of request
|
|
|
|
|
* per user or ip per minutes
|
|
|
|
|
*/
|
2021-08-23 20:03:17 +02:00
|
|
|
'apiRequestRatePerMinute' => 256,
|
|
|
|
|
|
|
|
|
|
/**
|
|
|
|
|
* Service requests cache
|
|
|
|
|
* time in minutes
|
|
|
|
|
*/
|
|
|
|
|
'servicesDBCache' => 10
|
2021-03-14 10:45:42 +01:00
|
|
|
];
|