From 24affad4eddf2172e8b2984d0267c29d5f400033 Mon Sep 17 00:00:00 2001 From: LordGhostX Date: Mon, 30 Oct 2023 17:55:40 +0100 Subject: [PATCH] document ext-multiaddr-only option --- docs/guides/nwaku/configure-nwaku.md | 20 +++++++++++++++++--- 1 file changed, 17 insertions(+), 3 deletions(-) diff --git a/docs/guides/nwaku/configure-nwaku.md b/docs/guides/nwaku/configure-nwaku.md index 603656f2..1a5635d2 100644 --- a/docs/guides/nwaku/configure-nwaku.md +++ b/docs/guides/nwaku/configure-nwaku.md @@ -196,7 +196,7 @@ Consider a `nwaku` node that enabled the REST `admin` and `private` API with a m ## Configure Filter Protocol -To enable `nwaku` to serve light clients, enable the [Filter protocol](/overview/concepts/protocols#filter) using the following configuration options: +To enable `nwaku` to serve light clients, enable the [Filter protocol](/overview/concepts/protocols#filter) using `filter` option: ```bash ./build/wakunode2 --filter=true @@ -224,7 +224,7 @@ If you omit the `filter-timeout` option, it will default to `14400` seconds (4 h ## Configure Light Push Protocol -To enable `nwaku` to serve light clients, enable the [Light Push protocol](/overview/concepts/protocols#light-push) using the following configuration options: +To enable `nwaku` to serve light clients, enable the [Light Push protocol](/overview/concepts/protocols#light-push) using the `lightpush` option: ```bash ./build/wakunode2 --lightpush=true @@ -240,4 +240,18 @@ For example, consider a `nwaku` node that requests lightpush of published messag ```bash ./build/wakunode2 --lightpushnode=/dns4/node-01.ac-cn-hongkong-c.wakuv2.prod.statusim.net/tcp/30303/p2p/16Uiu2HAm4v86W3bmT1BiH6oSPzcsSr24iDQpSN5Qa992BCjjwgrD -``` \ No newline at end of file +``` + +## Run a Node Behind a Reverse Proxy + +When using a reverse proxy server for SSL/TLS encryption, you only want to announce the proxy server's IP or domain. Nwaku provides the `ext-multiaddr-only` and `ext-multiaddr` options for specifying published multiaddr: + +```bash +./build/wakunode2 \ + --ext-multiaddr-only=true \ + --ext-multiaddr=[MULTIADDR TO PUBLISH] +``` + +:::info +The `ext-multiaddr-only` option takes precedence over the `nat` and `dns4-domain-name` options, using the values provided by the `ext-multiaddr` option instead. +::: \ No newline at end of file