Configuration
This guide explains how to configure the Kreya application using various methods. Kreya resolves configuration settings from multiple sources in order of priority. Settings specified in higher-priority sources will overwrite those in lower-priority sources. To configure the proxy settings, check out the proxy documentation.
After adjusting the configuration, you must restart the Kreya application for the changes to take effect.
Configuration Sources
Kreya reads configuration settings from the following sources, in order of priority:
-
Command Line Arguments
Settings provided as command-line arguments take the highest priority. -
Environment Variables
Environment variables prefixed withKREYA_
are used to configure Kreya. Environment variables used for configuration are case-insensitive. -
JSON Configuration Files
Kreya supports JSON configuration files, which are loaded from platform-specific locations:- Windows:
%APPDATA%\Kreya\kreya.config.json
<working directory>\kreya.config.json
- Linux:
$XDG_CONFIG_HOME/Kreya/kreya.config.json
~/Kreya/kreya.config.json
<working directory>/kreya.config.json
- macOS:
~/Library/Application Support/Kreya/kreya.config.json
<working directory>/kreya.config.json
- Windows:
Available Configuration Options
The following options can be configured using JSON files or environment variables:
JSON Key | Environment Variable | Description |
---|---|---|
DisableAutoUpdates | KREYA_DisableAutoUpdates | Disables automatic updates. |
Logging.LogLevel.Default | KREYA_Logging_LogLevel_Default | Configures the default log level. Available levels are None , Critical , Error , Warning , Information and Debug . |
Logging.LogLevel.{Category} | KREYA_Logging_LogLevel_{Category} | Configures the log level of a logging category. Available categories are KREYA and SYSTEM . |
RestMaxResponseSize | KREYA_RestMaxResponseSize | Sets the maximum response size for REST APIs. |
ScriptingTimeout | KREYA_ScriptingTimeout | Configures the timeout for scripts. |
DisableTelemetry | KREYA_DisableTelemetry | Disables telemetry data collection. |
MaxHistoryEntries | KREYA_MaxHistoryEntries | Configures the maximum number of history entries. |
MaxHistoryEntriesPerProject | KREYA_MaxHistoryEntriesPerProject | Configures the maximum number of history entries per project. |
MaxHistoryEntriesPerOperation | KREYA_MaxHistoryEntriesPerOperation | Configures the maximum number of history entries per operation. |
Example JSON Configuration File
Below is an example of a JSON configuration file:
{
"RestMaxResponseSize": 1048576,
"ScriptingTimeout": 30000,
"Logging": {
"LogLevel": {
"Default": "Warning",
"Kreya": "Information"
}
}
}