Emakin configuration settings can be divided to two different area. Emakin supports the multiple nodes to support horizontally scaling with load balancer scenarios. Each agent node has own configuration files to connect host configuration database. Host configuration is shared with all nodes in farm and stored in database.
Agent Configuration
Specifies the node configuration in server farm. Generally it contains the application host connection and other network related configuration settings. Agent configuration uses layered configuration in following order;
<installdir>/appsettings.json
<installdir>/Configuration/appsettings.json
- Environment variables
- Command line arguments
Default configuration is stored in <installdir>/appsettings.json
file and it is not recommended to change. Any change should be specified in <installdir>/Configuration/appsettings.json
or other layers.
Environment Variables
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 environment variable;
Code Block |
---|
AK_DbProvider = "Postgres"
AK_DbConnStr = "Host=myserver;Database=emakin;Username=emakin;Password=mypassword;" |
Command Line Arguments
Any command line argument to agent executable overrides the configuration entries.
...
Please see Agent Node Configuration page to configure an agent.
Host configuration
Specifies the global farm configuration. All agent nodes in farm shares the same configuration. By default host administration can be accessed from only localhost http://localhost:5000 address.
...