Skip to content

Commit 1ccfb90

Browse files
feat(seting): Fix default settings
1 parent 8b1cee9 commit 1ccfb90

File tree

2 files changed

+9
-5
lines changed

2 files changed

+9
-5
lines changed

docs/USER_GUIDE.md

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -129,6 +129,10 @@ Here is the list of available settings that you could define in the `scripts/set
129129
- `api_connect_timeout`: In seconds. **Only for curl**. The timeout for the connection phase when calling Local
130130
API. Default to 300 sec. If set to a 0, timeout will be unlimited.
131131

132+
- `appsec_timeout_ms`: In milliseconds. The global timeout when calling AppSec. Default to 400 ms. If set to a negative value or 0, timeout will be unlimited.
133+
134+
- `appsec_connect_timeout_ms`: In milliseconds. **Only for curl**. The timeout for the connection phase when calling AppSec. Default to 150 ms. If set to a 0, timeout will be unlimited.
135+
132136

133137
- `use_curl`: By default, this lib call the REST Local API using `file_get_contents` method (`allow_url_fopen` is required).
134138
You can set `use_curl` to `true` in order to use `cURL` request instead (`ext-curl` is in then required)

scripts/settings.php.dist

Lines changed: 5 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -184,17 +184,17 @@ return [
184184
// Define the AppSec URL of your LAPI server, default to http://localhost:7422.
185185
'appsec_url' => LapiConstants::DEFAULT_APPSEC_URL,
186186

187-
// In seconds. The timeout when calling LAPI. Must be greater or equal than 1. Defaults to 120 sec.
187+
// In seconds. The timeout when calling LAPI. Defaults to 120 sec.
188188
'api_timeout' => Constants::API_TIMEOUT,
189189

190-
// In seconds. The connection timeout when calling LAPI. Must be greater or equal than 1. Defaults to 300 sec.
190+
// In seconds. The connection timeout when calling LAPI. Defaults to 300 sec.
191191
'api_connect_timeout' => Constants::API_CONNECT_TIMEOUT,
192192

193-
// In milliseconds. The timeout when calling AppSec. Must be greater or equal than 1. Defaults to 400 ms.
193+
// In milliseconds. The timeout when calling AppSec. Defaults to 400 ms.
194194
'appsec_timeout_ms' => Constants::APPSEC_TIMEOUT_MS,
195195

196-
// In milliseconds. The connection timeout when calling APPSEC. Must be greater or equal than 1. Defaults to 150 sec.
197-
'appsec_connect_timeout' => Constants::APPSEC_CONNECT_TIMEOUT_MS,
196+
// In milliseconds. The connection timeout when calling APPSEC. Defaults to 150 ms.
197+
'appsec_connect_timeout_ms' => Constants::APPSEC_CONNECT_TIMEOUT_MS,
198198

199199
// ============================================================================#
200200
// Remediation engine configs

0 commit comments

Comments
 (0)