Skip to content

Script.json

Cautions

When changing parameters, please refer to "Confirmation When Changing Parameters".

Setting Values

The setting values ​​of this parameter file are as follows.

Parameter name e.g. Description
ServerScript true Set this parameter to true will enable "Server Script".
BackgroundServerScript false Set this parameter to true will enable "Background Server Script".
DisableServerScriptHttpClient false Set this parameter to true will disable "httpClient" in "Server Script".
ServerScriptTimeOut 2000 Specify the processing timeout time for "Server Script" in milliseconds. Setting 0 will make it unlimited.
ServerScriptTimeOutChangeable false Set this parameter to true will allow setting the timeout time for each registered server script.
ServerScriptTimeOutMin 0 Set the minimum timeout time.
ServerScriptTimeOutMax 86400000 Set the maximum timeout time.
ServerScriptHttpClientTimeOut 100000 Specify the initial value of the TimeOut property of "httpClient" in server scripts in milliseconds.
ServerScriptHttpClientTimeOutMin 0 Specify the minimum value that can be set for the TimeOut property of "httpClient" in server scripts in milliseconds.
ServerScriptHttpClientTimeOutMax 86400000 Specify the maximum value that can be set for the TimeOut property of "httpClient" in server scripts in milliseconds.
ServerScriptHttpClientMaxRedirectCount 50 Specify the maximum number of redirects that "httpClient" in server scripts follows. If 0 is specified, redirects are not followed. For details, refer to "httpClient".
ServerScriptIncludeDepthLimit 10 Specify the maximum depth at which "Include" in "Server Script" is called recursively.
DisableServerScriptFile true Set this parameter to true will disable "$ps.file" in "Server Script".
ServerScriptFileSizeMax 1 Specify the maximum size (MB) of files to read. Specifying -1 makes it unlimited.
ServerScriptFilePath null Specify the base directory that stores the files to read and write. Specifying a relative path or the root directory ("C:\" or "D:\" on Windows, "/" on Linux) results in an error.

Troubleshooting

  1. If an "Application Error" occurs on a "Site" where a "Server Script" is installed and "Script execution interrupted by host" is recorded in the "SysLogs Table", the problem may be resolved by increasing the "ServerScriptTimeOut" setting.

Supported Versions

Supported versions Body
1.4.12.0 and later Added DisableServerScriptFile
Added ServerScriptFileSizeMax
Added ServerScriptFilePath
1.4.19.0 and later Added ServerScriptHttpClientTimeOut
ServerScriptHttpClientTimeOutMin
ServerScriptHttpClientTimeOutMax
1.5.10.0 and later Added ServerScriptHttpClientMaxRedirectCount