From 56475ba80c3de0c9007664ac0c32a961f284f8a3 Mon Sep 17 00:00:00 2001 From: aramalipoor Date: Sat, 31 Aug 2024 02:25:00 +0200 Subject: [PATCH] docs: add listenV4 and listenV6 config examples --- cmd/erpc/main_test.go | 1 + docs/pages/config/database.mdx | 4 +++- docs/pages/config/example.mdx | 4 ++++ 3 files changed, 8 insertions(+), 1 deletion(-) diff --git a/cmd/erpc/main_test.go b/cmd/erpc/main_test.go index 4e8b74b0..934045d1 100644 --- a/cmd/erpc/main_test.go +++ b/cmd/erpc/main_test.go @@ -43,6 +43,7 @@ logLevel: DEBUG server: httpHostV4: "` + localHost + `" + listenV4: true httpPort: ` + localPort + ` `) diff --git a/docs/pages/config/database.mdx b/docs/pages/config/database.mdx index 83d420c0..ddea2abe 100644 --- a/docs/pages/config/database.mdx +++ b/docs/pages/config/database.mdx @@ -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` diff --git a/docs/pages/config/example.mdx b/docs/pages/config/example.mdx index 26edb9ff..336973df 100644 --- a/docs/pages/config/example.mdx +++ b/docs/pages/config/example.mdx @@ -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