Skip to content

Environment Variables

Pavel Kravtsov edited this page Feb 9, 2026 · 5 revisions

General Configuration

Variable Type Description Default
CHF_CONFIG_PATH string Path to the config JSON file /app/config/config.json
CHF_CACHE_CONFIG boolean Enable or disable config caching true

Database Configuration

These values will be appended to the databaseConfigs array in config.json at runtime. For a more complex or multiple DB configurations, use configuration file.

Variable Type Description
CHF_DB_URL string Full database connection URL
CHF_DB_USERNAME string Database username
CHF_DB_PASSWORD string Database password
CHF_DB_NAME string Name of the database
CHF_DB_CONFIG_NAME string Optional name used to identify this database configuration (defaults to CHF_DB_NAME if not set)

Export Settings

Each value provided will override the corresponding key in the exportConfig section of config.json at runtime.

Variable Type Description Allowed Values
CHF_EXPORT_FORMAT enum Format used for export PDF, SVG
CHF_EXPORT_PADDING number Padding (in pixels) applied on export Non-negative integer

Canvas Settings

Each value provided will override the corresponding key in the canvasConfig section of config.json at runtime.

Variable Type Description Notes / Example
CHF_CANVAS_SNAP_TO_GRID boolean Snap canvas elements to a grid
CHF_CANVAS_GRID_SIZE number Grid size in pixels Positive integer
CHF_CANVAS_BACKGROUND_COLOR string Hex color for canvas background (#rrggbb format) e.g. #ffffff
CHF_CANVAS_AUTO_FIT_VIEW boolean Fit view of flow chart on database selection

Materialized View Settings

Each value provided will override the corresponding key in the materializedViewsConfig section of config.json at runtime.

Variable Type Description Notes / Example
CHF_MAT_VIEWS_RENDER_MODE enum Determines how a materialized view is displayed ROWS, AS_SELECT, CREATE_COMMAND (see config section)

For those who want to dive deeper, you can find the current environment variable schema in env.ts.

Clone this wiki locally