Skip to content

Commit

Permalink
add missing env vars & fix yaml structure
Browse files Browse the repository at this point in the history
  • Loading branch information
smk762 committed Aug 31, 2024
1 parent 90d18cf commit 9652eb2
Showing 1 changed file with 8 additions and 4 deletions.
12 changes: 8 additions & 4 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -61,7 +61,9 @@ The priority of configuration settings is as follows:
+ `9981` Sia consensus

### Environment Variables
+ `WALLETD_API_PASSWORD` - The password required to access the API
+ `WALLETD_API_PASSWORD` - The password required to access the API.
+ `WALLETD_CONFIG_FILE` - The path to the YAML configuration file. Defaults to `walletd.yml` in the working directory.
+ `WALLETD_LOG_FILE` - The path to the log file.

### Command Line Flags
```
Expand Down Expand Up @@ -99,19 +101,21 @@ Flags:

### YAML
All configuration settings can be set in a YAML file. The file should be named
`walletd.yaml` in the working directory. All fields are optional.
`walletd.yml` in the working directory. All fields are optional.
```yaml
directory: /etc/walletd
autoOpenWebUI: true
http:
address: :9980
address: 9980
password: sia is cool
publicEndpoints: false # when true, auth will be disabled on endpoints that should be publicly accessible when running walletd as a service
consensus:
network: mainnet
gatewayAddress: :9981
syncer:
bootstrap: false
enableUPnP: false
peers: []
address: 9981
index:
mode: personal # personal, full, none ("full" will index the entire blockchain, "personal" will only index addresses that are registered in the wallet, "none" will treat the database as read-only and not index any new data)
batchSize: 64 # max number of blocks to index at a time (increasing this will increase scan speed, but also increase memory and cpu usage)
Expand Down

0 comments on commit 9652eb2

Please sign in to comment.