Skip to content

Commit

Permalink
docs: add listenV4 and listenV6 config examples
Browse files Browse the repository at this point in the history
  • Loading branch information
aramalipoor committed Aug 31, 2024
1 parent a4f63a6 commit 56475ba
Show file tree
Hide file tree
Showing 3 changed files with 8 additions and 1 deletion.
1 change: 1 addition & 0 deletions cmd/erpc/main_test.go
Original file line number Diff line number Diff line change
Expand Up @@ -43,6 +43,7 @@ logLevel: DEBUG
server:
httpHostV4: "` + localHost + `"
listenV4: true
httpPort: ` + localPort + `
`)

Expand Down
4 changes: 3 additions & 1 deletion docs/pages/config/database.mdx
Original file line number Diff line number Diff line change
Expand Up @@ -7,7 +7,9 @@ Long-term storage is optional but used for various purposes such as caching, rat
```yaml filename="erpc.yaml"
# ...
database:
evmJsonRpcCache: # ...
evmJsonRpcCache:
driver: memory | redis | postgresql | dynamodb
# ... (driver specific config, see below)
```

### `evmJsonRpcCache`
Expand Down
4 changes: 4 additions & 0 deletions docs/pages/config/example.mdx
Original file line number Diff line number Diff line change
Expand Up @@ -69,14 +69,18 @@ database:

# The main server for eRPC to listen for requests.
server:
listenV4: true
httpHostV4: "0.0.0.0"
listenV6: false
httpHostV6: "[::]"
httpPort: 4000

# Optional Prometheus metrics server.
metrics:
enabled: true
listenV4: true
hostV4: "0.0.0.0"
listenV6: false
hostV6: "[::]"
port: 4001

Expand Down

0 comments on commit 56475ba

Please sign in to comment.