Configuration

Configuration items can be used to get configuration data into a service. These items are configured per the deployed service and can also have default values.

Note: When a configuration item is updated, the service automatically restarts so that the updated item is reloaded. For Java, this restart takes a few minutes and for Node.js a few seconds.

The maximum length of a variable value in the configuration item is 4 kB. The maximum number of configuration items is 25.

The type can be either "variable" or "file".

Example: Variable

```json
"configuration": [
	{
		"name": "MY_CONFIGURATION_ITEM",
		"value": "test value",
		"hidden": false,
		"type": "variable"
	}
]
```

Example: Authorization Config

Used for trigger services (Scheduled, Queue or Storage) that needs to communicate with other api:s. Name here is required to be "BAAS_IONAPI_AUTH".

```json
"configuration": [
	{
		"name": "BAAS_IONAPI_AUTH",
		"value": null,
		"hidden": true,
		"type": "file"
	}
]
```