reference1 min readApplication: Platform
System configuration scripts
Fields and types of system configuration scripts, which run on installation, on node startup or before application data reaches the browser.
A system configuration script runs a server script at a point in the life of an instance, such as each time a node starts. This page lists its fields and types for administrators with the administrator role. Earlier versions of this documentation called them provisioning scripts.
In the Administration workspace, go to Scripting & automation → Scripts → System configuration scripts.

System configuration script fields

| Field | Type | Behaviour | Purpose |
|---|---|---|---|
| Name | Text | Required. | Identifies the script. |
| Description | Text | Says what the script does. | |
| Active | Yes or no | Default yes. | Only active scripts run. |
| Type | Choice | Required. Values are in the next table. | When the script runs. |
| Order | Number | Required. Lower numbers run first. | Orders scripts of the same type. |
| Run on triggers | List | Optional. Application upgrade, Instance clone, or both. | Limits a Node startup script to startups that follow those events. |
| Script | Script | Required. Runs on the server as the system. | The logic to run. |
Type values
| Type | Runs | Use it to |
|---|---|---|
| Installation | Once, when the platform is first installed on a new deployment. | Set initial instance properties. |
| Node startup | Each time a node starts. With Run on triggers set, only on startups that follow an application upgrade or an instance clone. | Check properties, raise events or adjust data after a clone. |
| Application data | Each time application data is prepared for a signed-in user’s browser. | Change the application data before it is sent to the client. |
A script that fails is logged and the next script still runs.
Shipped scripts
| Script | Type | What it does |
|---|---|---|
| Set initial BaseURL System Property | Node startup | Creates or updates the system.baseurl property. Edit it when the instance is served at a different URL. |
| After clone record update | Node startup, Instance clone | Disables email jobs, deletes global search sync states and resets the job scheduler on a non-production copy. |
| Validate import temporary tables | Installation | Clears references from import tables to temporary tables that no longer exist. |
The base URL script is the one to change when you put the instance behind a reverse proxy. The full example is in Serve Servicely behind a reverse proxy.