2018-10-30 15:51:59 +00:00
|
|
|
---
|
2021-01-14 15:19:37 +00:00
|
|
|
title: Monero Configuration File
|
2024-09-29 20:28:26 +00:00
|
|
|
|
|
|
|
configfile: "~/.bitmonero/bitmonero.conf"
|
|
|
|
datadir: "~/.bitmonero"
|
|
|
|
logfile: "log-file=~/.bitmonero"
|
|
|
|
maxlogsize: ""
|
|
|
|
publicnode: "#public-node=1 # Advertise to other users they can use this node for connecting their wallets"
|
|
|
|
|
2018-10-30 15:51:59 +00:00
|
|
|
---
|
|
|
|
# Monero Configuration File
|
|
|
|
|
|
|
|
## Applicability
|
|
|
|
|
2024-09-18 13:08:11 +00:00
|
|
|
By default Monero looks for `bitmonero.conf` in Monero [data directory](../interacting/overview.md#data-directory).
|
2018-10-30 15:51:59 +00:00
|
|
|
|
2018-10-31 13:48:43 +00:00
|
|
|
To use a specific config file add `--config-file` option:
|
2018-10-30 15:51:59 +00:00
|
|
|
|
2019-02-21 11:47:22 +00:00
|
|
|
`./monerod --config-file=/etc/monerod.conf`
|
2018-10-30 15:51:59 +00:00
|
|
|
|
|
|
|
The `--config-file` option is available for:
|
|
|
|
|
2024-09-29 20:28:26 +00:00
|
|
|
- `monerod`
|
|
|
|
- `monero-wallet-cli`
|
|
|
|
- `monero-wallet-rpc`
|
|
|
|
- `monero-gen-trusted-multisig`
|
2018-10-30 15:51:59 +00:00
|
|
|
|
|
|
|
## Syntax
|
|
|
|
|
2024-09-29 20:28:26 +00:00
|
|
|
- `option-name=value`
|
|
|
|
- `valueless-option-name=1` for options that don't expect value
|
|
|
|
- `# comment`
|
|
|
|
- whitespace is ignored
|
2018-10-30 15:51:59 +00:00
|
|
|
|
|
|
|
## Reference
|
|
|
|
|
2019-02-21 14:12:44 +00:00
|
|
|
All configuration options are the same as command line options for the binary.
|
|
|
|
|
2024-09-29 20:28:26 +00:00
|
|
|
- [monerod reference](../interacting/monerod-reference.md)
|
|
|
|
- [monero-wallet-cli reference](../interacting/monero-wallet-cli-reference.md)
|
|
|
|
- [monero-wallet-rpc reference](../interacting/monero-wallet-rpc-reference.md)
|
2018-10-30 15:51:59 +00:00
|
|
|
|
|
|
|
Skip the `--` from `--option-name`.
|
|
|
|
|
|
|
|
Example:
|
|
|
|
|
|
|
|
`./monerod --log-level=4 --stagenet`
|
|
|
|
|
|
|
|
translates to:
|
|
|
|
|
2024-09-29 20:28:26 +00:00
|
|
|
```ini
|
|
|
|
log-level=4
|
|
|
|
stagenet=1 # use value "1" to enable the value-less options like --stagenet
|
|
|
|
```
|
|
|
|
## Templates
|
2019-02-21 14:12:44 +00:00
|
|
|
|
|
|
|
### `monerod.conf`
|
|
|
|
|
2024-09-29 20:28:26 +00:00
|
|
|
This config is tailored for desktop usage on [mainnet :link:](../infrastructure/networks.md#mainnet)
|
|
|
|
{% include 'monerod_template' %}
|
2019-02-21 14:12:44 +00:00
|
|
|
|
|
|
|
### `monero-wallet-cli.conf`
|
|
|
|
|
2024-09-29 20:28:26 +00:00
|
|
|
This config is tailored for desktop usage on [stagenet :link:](../infrastructure/networks.md#stagenet).
|
2019-02-21 14:12:44 +00:00
|
|
|
|
2024-09-29 20:28:26 +00:00
|
|
|
```ini
|
|
|
|
# ~/.bitmonero/stagenet/monero-wallet-cli.conf
|
2019-02-21 14:12:44 +00:00
|
|
|
|
2024-09-29 20:28:26 +00:00
|
|
|
# Pick network
|
|
|
|
stagenet=1
|
2019-02-21 14:12:44 +00:00
|
|
|
|
2024-09-29 20:28:26 +00:00
|
|
|
# Connect to a remote full node
|
|
|
|
daemon-address=YOUR.NODE.IP:38081
|
|
|
|
#trusted-daemon=1
|
2019-02-21 14:12:44 +00:00
|
|
|
|
2024-09-29 20:28:26 +00:00
|
|
|
# Log file
|
|
|
|
log-file=/tmp/monero-wallet-cli.log
|
2024-09-18 13:08:11 +00:00
|
|
|
|
2024-09-29 20:28:26 +00:00
|
|
|
# wallet-file=~/.bitmonero/stagenet/wallets/MoneroExampleStagenetWallet
|
|
|
|
```
|