Skip to content
Branch: master
Find file Copy path
Find file Copy path
Fetching contributors…
Cannot retrieve contributors at this time
46 lines (35 sloc) 1.21 KB

Configuration binaries such as ilp-node and interledger-settlement-engines accept configuration options in the following ways:

Environment variables

# Passing as environment variables
# {parameter name (typically in capital)}={value}
# note that the parameter names MUST begin with a prefix of "ILP_" e.g. ILP_SECRET_SEED
ILP_ADDRESS=example.alice \
cargo run

Standard In (stdin)

# Passing from STDIN in JSON, TOML, YAML format.
some_command | cargo run

Configuration files

# Passing by a configuration file in JSON, TOML, YAML format.
# The first argument after subcommands such as `node` is the path to the configuration file.
# Note that in order for a docker image to have access to a local file, it must be included in
# a directory that is mounted as a Volume at `/config`
cargo run -- config.yml

Command line arguments

# Passing by command line arguments.
# --{parameter name} {value}
cargo run -- --admin_auth_token super-secret

Note that configurations are applied in the following order of priority:

  1. Environment Variables
  2. Stdin
  3. Configuration files
  4. Command line arguments.
You can’t perform that action at this time.