Product configuration parameters
Table of contents
Overview
This guide describes how to set up default CloudBeaver preferences through the configuration files.
Product config structure
Packages are mapped as follows in the configuration file:
-
(package name) ->core-ui(name in config)ui
-
(package name) ->plugin-notifications(name in config)notifications
Here is a structural example:
{
core: {
[core package name]: {
[property name]: [property value]
},
...
},
plugin: {
[plugin package name]: {
[property name]: [property value]
},
...
}
}
Configuration example
The following JSON provides an example of how global properties and plugin-specific settings are defined:
{
// Global properties
core: {
authentication: {
baseAuthProvider: 'local',
primaryAuthProvider: 'local'
},
browser: {
'cookies.disabled': false
},
theming: {
defaultTheme: 'light'
},
localization: {
defaultLanguage: 'en'
},
'navigation-tree': {
childrenLimit: 500,
editing: true,
deleting: true
}
},
plugin: {
'sql-editor': {
maxFileSize: 100
},
notifications: {
notificationsPool: 5,
maxPersistentAllow: 5
},
'data-spreadsheet': {
hidden: false
},
'data-viewer': {
disableEdit: false
},
'log-viewer': {
refreshTimeout: 3000,
maxLogRecords: 1000,
logBatchSize: 2000,
maxFailedRequests: 3
},
'data-export': {
disabled: false
},
'erd-viewer': {
maxColumnsToDisplay: 15000
}
}
}
Shortcuts
Config below is equivalent to example config for plugins: ‘log-viewer’, ‘data-export’, ‘erd-viewer’
{
...
'plugin.log-viewer.refreshTimeout': 3000,
'plugin.log-viewer.maxLogRecords': 1000,
'plugin.log-viewer.logBatchSize': 2000,
'plugin.log-viewer.maxFailedRequests': 3,
'plugin.data-export.disabled': false,
'plugin.erd-viewer.maxColumnsToDisplay': false
}
Configuration file locations
The configuration files for the application are located in different directories based on their scope and usage. Below are the paths where these files can be found, listed in the order of their priority:
-
– Runtime configuration, highest priority.workspace/.data/.cloudbeaver.runtime.conf
-
– Server configuration.conf/product.conf
-
– Web application configuration.webapp/packages/product-default/src/config.json5
Table of settings
Variable | Default value | Description | |
---|---|---|---|
plugin.notifications.notificationsPool |
core_events.notificationsPool |
5 | Maximum notifications |
plugin.notifications.maxPersistentAllow |
core_events.maxPersistentAllow |
5 | Maximum persistent notifications |
core.browser.cookies.disabled |
core.cookies.disabled |
false | Whether an app can use cookies or not |
Explanation
If you want to disable the data export functionality and increase the refresh timeout for the Log Viewer you can modify the settings in the
- Open the
file.cloudbeaver.runtime.conf
- Paste the following code:
{
plugin: {
'log-viewer': {
refreshTimeout: 7000
},
'data-export': {
disabled: false
}
}
}