Skip to main content
Version: 1.1.4.1

Configuration Options Reference

The following options can be configured during initialization.

OptionDescriptionDefaultType
tenantIdUnique ID for customer identificationRequiredString
domainNameDomain of the server receiving requestsRequiredString
serverUrlDetection server URLRequiredString
protectionUrlBlock page (Captcha, Deny, etc.) URLRequiredString
httpRequestTimeoutHTTP request timeout (ms) to detection server1000int
logLevelLog 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"