Skip to content

Commit 56475ba

Browse files
committed
docs: add listenV4 and listenV6 config examples
1 parent a4f63a6 commit 56475ba

File tree

3 files changed

+8
-1
lines changed

3 files changed

+8
-1
lines changed

cmd/erpc/main_test.go

+1
Original file line numberDiff line numberDiff line change
@@ -43,6 +43,7 @@ logLevel: DEBUG
4343
4444
server:
4545
httpHostV4: "` + localHost + `"
46+
listenV4: true
4647
httpPort: ` + localPort + `
4748
`)
4849

docs/pages/config/database.mdx

+3-1
Original file line numberDiff line numberDiff line change
@@ -7,7 +7,9 @@ Long-term storage is optional but used for various purposes such as caching, rat
77
```yaml filename="erpc.yaml"
88
# ...
99
database:
10-
evmJsonRpcCache: # ...
10+
evmJsonRpcCache:
11+
driver: memory | redis | postgresql | dynamodb
12+
# ... (driver specific config, see below)
1113
```
1214

1315
### `evmJsonRpcCache`

docs/pages/config/example.mdx

+4
Original file line numberDiff line numberDiff line change
@@ -69,14 +69,18 @@ database:
6969

7070
# The main server for eRPC to listen for requests.
7171
server:
72+
listenV4: true
7273
httpHostV4: "0.0.0.0"
74+
listenV6: false
7375
httpHostV6: "[::]"
7476
httpPort: 4000
7577

7678
# Optional Prometheus metrics server.
7779
metrics:
7880
enabled: true
81+
listenV4: true
7982
hostV4: "0.0.0.0"
83+
listenV6: false
8084
hostV6: "[::]"
8185
port: 4001
8286

0 commit comments

Comments
 (0)