How Can We Help?

Search for answers or browse our knowledge base.

Recent Comments

    Archives

      Solutions

      Docs

      Contact

      SYNCNOW

      SyncNow logo SyncNow – connect teams , tools and processes

      Environment Variables Configuration Parameters

      < All Topics

      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__WINDOWSAUTHFALSE
      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

      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

      Was this article helpful?
      0 out of 5 stars
      5 Stars 0%
      4 Stars 0%
      3 Stars 0%
      2 Stars 0%
      1 Stars 0%
      5
      How can we improve this article?
      Please submit the reason for your vote so that we can improve the article.
      Table of Contents
      Skip to content