Skip to content

Product configuration parameters

Alexey edited this page Jul 20, 2022 · 33 revisions

Product config structure

example of packages:
core-ui (package name) -> ui (name in config)
plugin-notifications (package name) -> notifications (name in config)

{
  core: {
    [core package name]: {
      [property name]: [property value]
    },
    ...
  },
  plugin: {
    [plugin package name]: {
      [property name]: [property value]
    },
    ...
  }
}

Product config example

{
    // Global properties
    core: {
        administration: {
            baseFeatures: [],
        },
        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,
        },
        'resource-manager': {
            disable: false
        },
        'data-export': {
            disabled: false
        },
        'erd-viewer': {
            maxColumnsToDisplay: 15000
        }
    }
}

Shortcuts

Config below is equivalent to example config for plugins: 'log-viewer', 'resource-manager', '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.resource-manager.disabled': fasle,
  'plugin.data-export.disabled': fasle,
  'plugin.erd-viewer.maxColumnsToDisplay': fasle,
}

Configuration file locations

webapp/packages/product-default/src/config.json5 (webapp)
conf/product.conf (server)
workspace/.data/.product.runtime.conf (runtime)
listed in priority order

Table of settings

Variable Deprecated Value Description
plugin.notifications.notificationsPool core_events.notificationsPool 5 Maximum notifications
core.browser.cookies.disabled core.cookies.disabled false Whether an app can use cookies or not

Explanation

For example, if you want to disable the data export functionality and increase refresh timeout for the Log Viewer, you can do it this way.

  1. Open or create .product.runtime.conf
  2. Paste the following code
{
  plugin: {
    "log-viewer": {
      refreshTimeout: 7000
    },
    'data-export': {
      disabled: false
    },
  }
}

CloudBeaver Documentation

User Guide

Installation

Configuration

CloudBeaver AWS

CloudBeaver Enterprise Edition

Deployment

Clone this wiki locally