|
1 | 1 | ---
|
2 |
| -title: Monero Configuration File |
3 |
| -parent: Interacting with Monero |
| 2 | +layout: redirected |
| 3 | +sitemap: false |
| 4 | +permalink: /interacting/monero-config-file |
| 5 | +redirect_to: https://docs.getmonero.org/interacting/monero-config-file/ |
4 | 6 | ---
|
5 |
| - |
6 |
| -# Monero Configuration File |
7 |
| - |
8 |
| -## Applicability |
9 |
| - |
10 |
| -By default Monero looks for `bitmonero.conf` in Monero [data directory](/interacting/overview#data-directory). |
11 |
| - |
12 |
| -To use a specific config file add `--config-file` option: |
13 |
| - |
14 |
| -`./monerod --config-file=/etc/monerod.conf` |
15 |
| - |
16 |
| -The `--config-file` option is available for: |
17 |
| - |
18 |
| -* `monerod` |
19 |
| -* `monero-wallet-cli` |
20 |
| -* `monero-wallet-rpc` |
21 |
| -* `monero-gen-trusted-multisig` |
22 |
| - |
23 |
| -## Syntax |
24 |
| - |
25 |
| -* `option-name=value` |
26 |
| -* `valueless-option-name=1` for options that don't expect value |
27 |
| -* `# comment` |
28 |
| -* whitespace is ignored |
29 |
| - |
30 |
| -## Reference |
31 |
| - |
32 |
| -All configuration options are the same as command line options for the binary. |
33 |
| - |
34 |
| -* [monerod reference](/interacting/monerod) |
35 |
| -* [monero-wallet-cli reference](/interacting/monero-wallet-cli) |
36 |
| -* [monero-wallet-rpc reference](/interacting/monero-wallet-rpc) |
37 |
| - |
38 |
| -Skip the `--` from `--option-name`. |
39 |
| - |
40 |
| -Example: |
41 |
| - |
42 |
| -`./monerod --log-level=4 --stagenet` |
43 |
| - |
44 |
| -translates to: |
45 |
| - |
46 |
| - log-level=4 |
47 |
| - stagenet=1 # use value "1" to enable the value-less options like --stagenet |
48 |
| - |
49 |
| -## Examples |
50 |
| - |
51 |
| -### `monerod.conf` |
52 |
| - |
53 |
| -This config is tailored for production server usage. |
54 |
| - |
55 |
| - # /etc/monero/monerod.conf |
56 |
| - |
57 |
| - # Data directory (blockchain db and indices) |
58 |
| - data-dir=/home/monero/.monero # Remember to create the monero user first |
59 |
| - |
60 |
| - # Log file |
61 |
| - log-file=/var/log/monero/monerod.log |
62 |
| - max-log-file-size=0 # Prevent monerod from managing the log files; we want logrotate to take care of that |
63 |
| - |
64 |
| - # P2P full node |
65 |
| - p2p-bind-ip=0.0.0.0 # Bind to all interfaces (the default) |
66 |
| - p2p-bind-port=18080 # Bind to default port |
67 |
| - |
68 |
| - # RPC open node |
69 |
| - rpc-bind-ip=0.0.0.0 # Bind to all interfaces |
70 |
| - rpc-bind-port=18081 # Bind on default port |
71 |
| - confirm-external-bind=1 # Open node (confirm) |
72 |
| - restricted-rpc=1 # Prevent unsafe RPC calls |
73 |
| - no-igd=1 # Disable UPnP port mapping |
74 |
| - |
75 |
| - # Slow but reliable db writes |
76 |
| - db-sync-mode=safe |
77 |
| - |
78 |
| - # Emergency checkpoints set by MoneroPulse operators will be enforced to workaround potential consensus bugs |
79 |
| - # Check https://getmonero.dev/infrastructure/monero-pulse/ for explanation and trade-offs |
80 |
| - enforce-dns-checkpointing=1 |
81 |
| - |
82 |
| - out-peers=64 # This will enable much faster sync and tx awareness; the default 8 is suboptimal nowadays |
83 |
| - in-peers=1024 # The default is unlimited; we prefer to put a cap on this |
84 |
| - |
85 |
| - limit-rate-up=1048576 # 1048576 kB/s == 1GB/s; a raise from default 2048 kB/s; contribute more to p2p network |
86 |
| - limit-rate-down=1048576 # 1048576 kB/s == 1GB/s; a raise from default 8192 kB/s; allow for faster initial sync |
87 |
| - |
88 |
| -### `monero-wallet-cli.conf` |
89 |
| - |
90 |
| -This config is tailored for desktop usage on [stagenet](/infrastructure/networks). |
91 |
| - |
92 |
| - # $HOME/.bitmonero/stagenet/monero-wallet-cli.conf |
93 |
| - |
94 |
| - # Pick network |
95 |
| - stagenet=1 |
96 |
| - |
97 |
| - # Connect to a remote full node |
98 |
| - daemon-address=monero-stagenet.exan.tech:38081 |
99 |
| - untrusted-daemon=1 |
100 |
| - |
101 |
| - # Log file |
102 |
| - log-file=/tmp/monero-wallet-cli.log |
103 |
| - |
104 |
| - # wallet-file=/home/YOUR-USER/.bitmonero/stagenet/wallets/MoneroExampleStagenetWallet |
0 commit comments