Versions Compared

Key

  • This line was added.
  • This line was removed.
  • Formatting was changed.

Specifies the node configuration in the server farm. Generally, it contains the application host connection and other network-related configuration settings. Agent configuration uses the layered configuration in the following order;

  • <installdir>/appsettings.json

  • <installdir>/Configuration/appsettings.json

  • <installdir>/Configuration/Custom/appsettings.json

  • Environment variables

  • Command line arguments

  • <installdir>/Configuration/Custom/protectedsettings.json

...

Any environment variable that starts with "AK_" prefix overrides the configuration entries in appsettings.json file. For example, host configuration connection can be specified as an environment variable;

Code Block
AK_DbProvider = "Postgres"
AK_DbConnStr = "Host=myserver;Database=emakin;Username=emakin;Password=mypassword;"

...

Any command line argument to the agent executable overrides the configuration entries.

...

Encrypting Configuration Settings

By default, all configuration parameters are stored in plain text json JSON files but sensitive settings like database connection string can be encrypted if needed.

...

Note

Encrypted configuration settings can be only written and cannot be read back. If you lost this file all values are cannot be retrieved.

For example, the database connection string can be set with;

...