Skip to content

Data path setting

This setting controls where AyaNova stores it's data by default and is required to be present unless all other path related configuration settings are specified individually.

All data path configurations default to a location under the location specified by AYANOVA_DATA_PATH as follows:

Override individual locations

Each of the path related configuration settings can also be specified individually, any that are left out will default to the above settings.

Default

On Windows computers that use the installer, the default location for this setting is set by the installer the 'ProgramData' folder. There is no default for other operating systems or manual installations.

Overriding

AyaNova expects the data path to be provided by a config.json property, environment variable or command line parameter named

AYANOVA_DATA_PATH

The value specified should be a string containing a fully qualified file path for the platform.

Example LINUX config.json entry

{
  ...other properties...
  "AYANOVA_DATA_PATH": "/var/lib/ayanova"
}

Example WINDOWS config.json entry (Back slashes need to be doubled in config.json file or the server will fail to start)

{
  ...other properties...
  "AYANOVA_DATA_PATH": "c:\\ProgramData\\ayanova"
}

Example command line parameter

ayanova.exe --AYANOVA_DATA_PATH="/var/lib/ayanova"

Example environment variable

Windows

set "AYANOVA_DATA_PATH=c:\ProgramData\ayanova"

Linux

export AYANOVA_DATA_PATH="/var/lib/ayanova"