Configuration Options Reference
The following options can be configured during initialization.
| Option | Description | Default | Type |
|---|---|---|---|
tenantId | Unique ID for customer identification | Required | String |
domainName | Domain of the server receiving requests | Required | String |
serverUrl | Detection server URL | Required | String |
protectionUrl | Block page (Captcha, Deny, etc.) URL | Required | String |
httpRequestTimeout | HTTP request timeout (ms) to detection server | 1000 | int |
logLevel | Log level (DEBUG, INFO, WARN, ERROR) | "ERROR" | String |
Option Details
tenantId
Unique ID for customer identification. You can check it in the BotManager console.
.tenantId("{tenant-id}") // Required
domainName
Domain of the server receiving requests. Use the domain selected in the BotManager console.
.domainName("{domain-name}") // Required
serverUrl
Detection server URL. Default value is https://botmanager.stclab.com/api/v1/macro.
.serverUrl("https://botmanager.stclab.com/api/v1/macro") // Required
protectionUrl
Block page (Captcha, Deny, etc.) URL. Default value is https://cdn-botmanager.stclab.com.
.protectionUrl("https://cdn-botmanager.stclab.com") // Required
httpRequestTimeout
HTTP request timeout time (milliseconds) to the detection server. Default value is 1000ms.
.httpRequestTimeout(1000) // Optional, default: 1000
It is recommended to increase the value in unstable network environments.
logLevel
Sets the log level. Possible values: DEBUG, INFO, WARN, ERROR. Default value is ERROR.
.logLevel("ERROR") // Optional, default: "ERROR"