Configuring elastex - adjust/elastex GitHub Wiki

elastex can be configured via command line options and configuration files. If both are used, the command line options take precedence. If a specific option is not specified it tries to fallback to a default value.

Run elastex help for list of available options and their default values.

Configuration files

elastex tries to look up configuration files in the following locations (and in this order):

  • ./config.yml
  • ~/.elastexrc
  • /etc/elastexrc

It will use the first configuration file it can find.

Specifying a different configuration file

The above logic can be overridden by specifying a configuration file via:

  • the --config|-C command line option
  • the ELASTEXRC environment variable

Recognized formats

Configuration files can be in any of the following formats:

  • YAML:
host: localhost
  • General:
host = localhost
  • JSON:
{"host":"localhost"}