docs/01_nodeos/02_usage/01_nodeos-configuration.md
The plugin-specific options can be configured using either CLI options or a configuration file, config.ini. Nodeos-specific options can only be configured from the command line. All CLI options and config.ini options can be found by running nodeos --help as shown above.
Each config.ini option has a corresponding CLI option. However, not all CLI options are available in config.ini. For instance, most plugin-specific options that perform actions are not available in config.ini, such as --delete-state-history from state_history_plugin.
For example, the CLI option --plugin eosio::chain_api_plugin can also be set by adding plugin = eosio::chain_api_plugin in config.ini.
config.ini locationThe default config.ini can be found in the following folders:
~/Library/Application Support/eosio/nodeos/config~/.local/share/eosio/nodeos/configA custom config.ini file can be set by passing the nodeos option --config path/to/config.ini.
The example below shows a typical usage of nodeos when starting a block producing node:
nodeos \
-e -p eosio \
--data-dir /users/mydir/eosio/data \
--config-dir /users/mydir/eosio/config \
--plugin eosio::producer_plugin \
--plugin eosio::chain_plugin \
--plugin eosio::http_plugin \
--plugin eosio::state_history_plugin \
--contracts-console \
--disable-replay-opts \
--access-control-allow-origin='*' \
--http-validate-host=false \
--verbose-http-errors \
--state-history-dir /shpdata \
--trace-history \
--chain-state-history \
>> nodeos.log 2>&1 &
The above nodeos command starts a producing node by:
-e)-p)--data-dir)config.ini directory (--config-dir)producer_plugin, chain_plugin, http_plugin, state_history_plugin (--plugin)chain_plugin options (--contracts-console, --disable-replay-opts)http-plugin options (--access-control-allow-origin, --http-validate-host, --verbose-http-errors)state_history options (--state-history-dir, --trace-history, --chain-state-history)stdout and stderr to the nodeos.log file