monero-docs/docs/en/interacting/monero-config-file.md
nahuhh 0666f2af51 monerod: tor and i2p guides
Co-authored-by: plowsof <77655812+plowsof@users.noreply.github.com>
Co-authored-by: HardenedSteel <19209715+HardenedSteel@users.noreply.github.com>
2024-10-15 19:56:32 +00:00

1.9 KiB

title configfile datadir logfile maxlogsize publicnode
Monero Configuration File ~/.bitmonero/bitmonero.conf ~/.bitmonero log-file=~/.bitmonero #public-node=1 # Advertise to other users they can use this node for connecting their wallets

Monero Configuration File

Applicability

By default Monero looks for bitmonero.conf in Monero data directory.

To use a specific config file add --config-file option:

./monerod --config-file=/etc/monerod.conf

The --config-file option is available for:

  • monerod
  • monero-wallet-cli
  • monero-wallet-rpc
  • monero-gen-trusted-multisig

Syntax

  • option-name=value
  • valueless-option-name=1 for options that don't expect value
  • # comment
  • whitespace is ignored

Reference

All configuration options are the same as command line options for the binary.

Skip the -- from --option-name.

Example:

./monerod --log-level=4 --stagenet

translates to:

log-level=4
stagenet=1     # use value "1" to enable the value-less options like --stagenet

Templates

monerod.conf

This config is tailored for desktop usage on mainnet 🔗 {% include 'monerod_template' %}

monero-wallet-cli.conf

This config is tailored for desktop usage on stagenet 🔗.

# ~/.bitmonero/stagenet/monero-wallet-cli.conf

# Pick network
stagenet=1

# Connect to a remote full node
daemon-address=YOUR.NODE.IP:38081
#trusted-daemon=1

# Log file
log-file=/tmp/monero-wallet-cli.log

# wallet-file=~/.bitmonero/stagenet/wallets/MoneroExampleStagenetWallet