Search for answers or browse our knowledge base.
Environment Variables Configuration Parameters
Configuration parameters can be set from environment variables as follows:
- General configuration parameters such as database and system port
- Connector parameters (for v3.x and above)
- Notification parameters (for v3.x and above)
General configuration parameters
Environment Parameter | Default Value |
---|---|
SETTINGS__DATABASECONFIGURATION__DATABASETYPE | SQLLite |
SETTINGS__DATABASECONFIGURATION__SERVER | localhost |
SETTINGS__DATABASECONFIGURATION__PORT | 5432 |
SETTINGS__DATABASECONFIGURATION__USERNAME | PostrgeSQL |
SETTINGS__DATABASECONFIGURATION__PASSWORD | Q1w2e3r4t5y6 |
SETTINGS__DATABASECONFIGURATION__WINDOWSAUTH | FALSE |
SETTINGS__DATABASECONFIGURATION__TRANSPORTENCRYPT | FALSE |
SETTINGS__DATABASECONFIGURATION__DATABASE | SyncNow |
KESTREL__ENDPOINTS__HTTP__URL | http://+:5030 |
KESTREL__ENDPOINTS__HTTPS__URL | http://+: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
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, like APIKey
, APISecret
, AccessToken
, AccessTokenSecret
, Password
.
The name of an environment variable should contains 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
_SYNCNOWSECRET_AzureDevOps_SYNCNOWSECRET_AccessToken=123abc
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
_SYNCNOWSECRET_MyNetSuite_SYNCNOWSECRET_AccessTokenSecret=gfedcba
_SYNCNOWSECRET_MyNetSuite_SYNCNOWSECRET_APIKey=123456
_SYNCNOWSECRET_MyNetSuite_SYNCNOWSECRET_APISecret=abcdefg
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 not supported symbols.
_SYNCNOWSECRET_My_Jira___________________connector_SYNCNOWSECRET_Password=MyPass12