Skip to main content

Environment Variables Configuration Parameters

Configuration parameters can be set from environment variables as follows:

  1. General configuration parameters, such as database and system port.
  2. Connector parameters (for v3.x and above).
  3. Notification parameters (for v3.x and above).

General Configuration Parameters

Environment ParameterDefault Value
SETTINGS__DATABASECONFIGURATION__DATABASETYPESQLLite
SETTINGS__DATABASECONFIGURATION__SERVERlocalhost
SETTINGS__DATABASECONFIGURATION__PORT5432
SETTINGS__DATABASECONFIGURATION__USERNAMEPostrgeSQL
SETTINGS__DATABASECONFIGURATION__PASSWORDQ1w2e3r4t5y6
SETTINGS__DATABASECONFIGURATION__WINDOWSAUTHTFALSEext
SETTINGS__DATABASECONFIGURATION__TRANSPORTENCRYPTFALSE
SETTINGS__DATABASECONFIGURATION__DATABASESyncNow
KESTREL__ENDPOINTS__HTTP__URLhttp://+:5030
KESTREL__ENDPOINTS__HTTPS__URLhttp://+:5031

Connector Configuration

Connectors configuration can be injected from an environment variable. Environment variables configuration takes precedence over user interface configuration.

These configuration parameters can also be set from environment variable.

Connector Configuration

To make SyncNow reading the credentials from environment variables – create them before running the app.

One system connector or notification provider can have few secret values, such as APIKey, APISecret, AccessToken, AccessTokenSecret, Password

The name of an environment variable should contain info of system connector’s name (or notification provider’s name) and its secret property name.

_SYNCNOWSECRET_<Name>_SYNCNOWSECRET_<Property>=<secret_value>.

Example 1

For example, for an access token to a system Azure DevOps, an environment variable will be:

Example 1

Example 2

For one system connector with multiple secret values, you can set all or only some of them into environment variables. Values that were not provided in environment variables will be taken from the database.

Example 2

Notification Providers Configuration

A password for a notification provider in the environment variable will be: _SYNCNOWSECRET_EmailNotifier_SYNCNOWSECRET_Password=MyEmailPass123

System Connector's Name with Special Characters

A name of an environment variable should not contain any characters besides latin letters, numbers and underscore. Use underscore in the environment variable name instead of any non-supported symbols.

configExampleSpecialChars

Connector Name with Special Characters