mirror of
https://github.com/ElementsProject/lightning.git
synced 2025-01-18 21:35:11 +01:00
add docs about configuration file
This commit is contained in:
parent
326b17a1be
commit
93d5df559d
18
README.md
18
README.md
@ -140,6 +140,24 @@ cli/lightning-cli pay <bolt11>
|
||||
|
||||
Note that there are lower-level interfaces (and more options to these interfaces) for more sophisticated use.
|
||||
|
||||
## Configuration File
|
||||
lightningd can be configured either by passing options via the command line, or via a configuration file. Command line options will always override the values in the configuration file.
|
||||
|
||||
To use a configuration file, create a file named "config" within your ".lightning" directory. Usually this will be ~/.lightning/config
|
||||
|
||||
Configuration options are set using a key=value pair on each line of the file, for example:
|
||||
```
|
||||
alias=SLEEPYDRAGON
|
||||
rgb=008000
|
||||
port=9735
|
||||
network=testnet
|
||||
```
|
||||
|
||||
For a full list of possible lightningd configuration options, run:
|
||||
```
|
||||
lightningd/lightningd --help
|
||||
```
|
||||
|
||||
## Further information
|
||||
|
||||
JSON-RPC interface is documented in the following manual pages:
|
||||
|
Loading…
Reference in New Issue
Block a user