54 lines
100 KiB
HTML
Raw Permalink Normal View History

2024-02-20 09:41:47 +00:00
<!doctype html>
2025-08-13 03:52:48 +00:00
<html lang="en-GB" dir="ltr" class="docs-wrapper plugin-docs plugin-id-default docs-version-current docs-doc-page docs-doc-id-undefined" data-has-hydrated="false">
2024-02-20 09:41:47 +00:00
<head>
<meta charset="UTF-8">
2025-08-13 03:52:48 +00:00
<meta name="generator" content="Docusaurus v3.8.1">
2025-10-03 11:14:33 +00:00
<title data-rh="true">Node Configuration Options | Waku Documentation</title><meta data-rh="true" name="viewport" content="width=device-width,initial-scale=1"><meta data-rh="true" name="twitter:card" content="summary_large_image"><meta data-rh="true" property="og:url" content="https://docs.waku.org/run-node/config-options"><meta data-rh="true" property="og:locale" content="en_GB"><meta data-rh="true" name="docusaurus_locale" content="en-GB"><meta data-rh="true" name="docsearch:language" content="en-GB"><meta data-rh="true" name="keywords" content="waku, web3"><meta data-rh="true" name="image" content="https://docs.waku.org/_og/42afe7978e5d4dfb6e31685f9b08e26dbfe9a1d4.png"><meta data-rh="true" name="docusaurus_version" content="current"><meta data-rh="true" name="docusaurus_tag" content="docs-default-current"><meta data-rh="true" name="docsearch:version" content="current"><meta data-rh="true" name="docsearch:docusaurus_tag" content="docs-default-current"><meta data-rh="true" property="og:title" content="Node Configuration Options | Waku Documentation"><meta data-rh="true" name="description" content="Here are the available node configuration options, along with their default values and descriptions:"><meta data-rh="true" property="og:description" content="Here are the available node configuration options, along with their default values and descriptions:"><link data-rh="true" rel="icon" href="/theme/image/favicon.ico"><link data-rh="true" rel="canonical" href="https://docs.waku.org/run-node/config-options"><link data-rh="true" rel="alternate" href="https://docs.waku.org/run-node/config-options" hreflang="en-GB"><link data-rh="true" rel="alternate" href="https://docs.waku.org/run-node/config-options" hreflang="x-default"><link rel="alternate icon" type="image/png" href="/theme/image/favicon.png">
<link rel="icon" type="image/svg+xml" href="/theme/image/favicon.svg"><link rel="stylesheet" href="/assets/css/styles.f0961b96.css">
2025-10-13 04:00:43 +00:00
<script src="/assets/js/runtime~main.fc0a4924.js" defer="defer"></script>
2025-10-03 11:14:33 +00:00
<script src="/assets/js/main.be9ec88b.js" defer="defer"></script>
2025-08-13 03:52:48 +00:00
<meta property="og:image" content="https://docs.waku.org/_og/42afe7978e5d4dfb6e31685f9b08e26dbfe9a1d4.png"><meta name="twitter:image" content="https://docs.waku.org/_og/42afe7978e5d4dfb6e31685f9b08e26dbfe9a1d4.png"></head>
2024-02-20 09:41:47 +00:00
<body class="navigation-with-keyboard">
2025-08-13 03:52:48 +00:00
<svg xmlns="http://www.w3.org/2000/svg" style="display: none;"><defs>
<symbol id="theme-svg-external-link" viewBox="0 0 24 24"><path fill="currentColor" d="M21 13v10h-21v-19h12v2h-10v15h17v-8h2zm3-12h-10.988l4.035 4-6.977 7.07 2.828 2.828 6.977-7.07 4.125 4.172v-11z"></path></symbol>
</defs></svg>
<script>!function(){var t=function(){try{return new URLSearchParams(window.location.search).get("docusaurus-theme")}catch(t){}}()||function(){try{return window.localStorage.getItem("theme")}catch(t){}}();document.documentElement.setAttribute("data-theme",t||(window.matchMedia("(prefers-color-scheme: dark)").matches?"dark":"light")),document.documentElement.setAttribute("data-theme-choice",t||"system")}(),function(){try{const c=new URLSearchParams(window.location.search).entries();for(var[t,e]of c)if(t.startsWith("docusaurus-data-")){var a=t.replace("docusaurus-data-","data-");document.documentElement.setAttribute(a,e)}}catch(t){}}()</script><div id="__docusaurus"><link rel="preload" as="image" href="/theme/image/logo-black.svg"><link rel="preload" as="image" href="/theme/image/logo.svg"><style data-emotion="css-global 3rtehh">.lsd-button{width:auto;cursor:pointer;padding:6px 24px;}.lsd-button--disabled{cursor:default;opacity:0.34;}.lsd-button--large{padding:10px 40px;}.lsd-button--medium{padding:6px 24px;}.lsd-button--small{padding:6px 12px;}.lsd-button:hover:not(.lsd-button--disabled) .lsd-button__text{-webkit-text-decoration:underline;text-decoration:underline;}.lsd-button--with-icon{display:-webkit-box;display:-webkit-flex;display:-ms-flexbox;display:flex;-webkit-align-items:center;-webkit-box-align:center;-ms-flex-align:center;align-items:center;}.lsd-button__icon{display:-webkit-box;display:-webkit-flex;display:-ms-flexbox;display:flex;-webkit-box-pack:center;-ms-flex-pack:center;-webkit-justify-content:center;justify-content:center;-webkit-align-items:center;-webkit-box-align:center;-ms-flex-align:center;align-items:center;height:100%;}.lsd-button--large.lsd-button--with-icon{padding:10px 0px 10px 18px;}.lsd-button--large.lsd-button--with-icon .lsd-button__icon{width:42px;}.lsd-button--medium.lsd-button--with-icon{padding:6px 0px 6px 14px;}.lsd-button--medium.lsd-button--with-icon .lsd-button__icon{width:38px;}.lsd-button--small.lsd-button--with-icon{padding:6px 0px 6px 12px;}.lsd-button--small.lsd-button--with-icon .lsd-button__icon{width:34px;}.lsd-button--outlined{background:none;border:1px solid rgb(var(--lsd-border-primary));}.lsd-button--outlined .lsd-button__text{color:rgb(var(--lsd-text-primary));}.lsd-button--filled{background:rgb(var(--lsd-surface-secondary));border:1px solid rgb(var(--lsd-border-primary));}.lsd-button--filled .lsd-button__text{color:rgb(var(--lsd-text-secondary));}</style><style data-emotion="css-global 10bahxd">.lsd-icon-button{display:-webkit-box;display:-webkit-flex;display:-ms-flexbox;display:flex;-webkit-flex-direction:row;-ms-flex-direction:row;flex-direction:row;-webkit-align-items:center;-webkit-box-align:center;-ms-flex-align:center;align-items:center;-webkit-box-pack:center;-ms-flex-pack:center;-webkit-justify-content:center;justify-content:center;cursor:pointer;background:none;padding:0;border:1px solid rgb(var(--lsd-border-primary));}.lsd-icon-button--filled{background-color:rgb(var(--lsd-icon-primary));}.lsd-icon-button--filled svg{--lsd-icon-primary:var(--lsd-icon-secondary);}.lsd-icon-button--disabled{opacity:0.34;cursor:default;}.lsd-icon-button--large{width:40px;height:40px;}.lsd-icon-button--medium{width:32px;height:32px;}.lsd-icon-button--small{width:28px;height:28px;}</style><style data-emotion="css-global icqph9">.lsd-icon-button-group{display:-webkit-box;display:-webkit-flex;display:-ms-flexbox;display:flex;-webkit-flex-direction:row;-ms-flex-direction:row;flex-direction:row;}.lsd-icon-button-group--outlined .lsd-icon-button:not(:last-child){border-right:none;}</style><style data-emotion="css-global 1f43ub2">body *{font-family:var(--lsd-typography-generic-font-family);}.lsd-typography{color:rgb(var(--lsd-text-primary));}.lsd-typography--sans-serif,.lsd-typography--sans-serif *{font-family:sans-serif;}.lsd-typography--serif,.lsd-typography--serif *{font-family:serif;}.lsd-typography--monospace,.lsd-typography--monospace *{font-family:monospace;}.lsd-typography--display1{color:rgb(var(--lsd-text-primary));font-weight:var(--lsd-display1-fontWeight);font-size:var(--lsd
2024-02-20 09:41:47 +00:00
.lsd-dropdown--error
) .lsd-dropdown__trigger:hover .lsd-dropdown__option-label,.lsd-dropdown:not(.lsd-dropdown--disabled):not(
.lsd-dropdown--error
2025-10-03 11:14:33 +00:00
) .lsd-dropdown__trigger:focus .lsd-dropdown__option-label{-webkit-text-decoration:underline;text-decoration:underline;}.lsd-dropdown__label{display:block;}.lsd-dropdown__button-container{display:-webkit-box;display:-webkit-flex;display:-ms-flexbox;display:flex;-webkit-box-pack:justify;-webkit-justify-content:space-between;justify-content:space-between;}.lsd-dropdown__trigger{width:100%;display:-webkit-box;display:-webkit-flex;display:-ms-flexbox;display:flex;-webkit-flex-direction:row;-ms-flex-direction:row;flex-direction:row;-webkit-align-items:center;-webkit-box-align:center;-ms-flex-align:center;align-items:center;-webkit-box-pack:justify;-webkit-justify-content:space-between;justify-content:space-between;border:none;cursor:pointer;background:none;}.lsd-dropdown__trigger:focus{outline:none;}.lsd-dropdown__option-label{cursor:inherit;white-space:nowrap;overflow:hidden;text-overflow:ellipsis;}.lsd-dropdown__icons{display:-webkit-box;display:-webkit-flex;display:-ms-flexbox;display:flex;-webkit-flex-direction:row;-ms-flex-direction:row;flex-direction:row;-webkit-align-items:center;-webkit-box-align:center;-ms-flex-align:center;align-items:center;-webkit-box-pack:center;-ms-flex-pack:center;-webkit-justify-content:center;justify-content:center;gap:8px;}.lsd-dropdown__icon{display:-webkit-box;display:-webkit-flex;display:-ms-flexbox;display:flex;-webkit-align-items:center;-webkit-box-align:center;-ms-flex-align:center;align-items:center;}.lsd-dropdown__supporting-text{margin:6px 14px;}.lsd-dropdown--error .lsd-dropdown__option-label{-webkit-text-decoration:line-through;text-decoration:line-through;}.lsd-dropdown--disabled{opacity:0.34;cursor:initial;}.lsd-dropdown--large{width:208px;}.lsd-dropdown--large.lsd-dropdown--error{width:230px;}.lsd-dropdown--large .lsd-dropdown__label{margin:0 0 6px 18px;}.lsd-dropdown--large .lsd-dropdown__button-container{height:40px;}.lsd-dropdown--large .lsd-dropdown__trigger{padding:10px 0px 10px 18px;}.lsd-dropdown--large .lsd-dropdown__icons{padding:0px 14px;}.lsd-dropdown--medium{width:188px;}.lsd-dropdown--medium.lsd-dropdown--error{width:210px;}.lsd-dropdown--medium .lsd-dropdown__label{margin:0 0 6px 14px;}.lsd-dropdown--medium .lsd-dropdown__button-container{height:32px;}.lsd-dropdown--medium .lsd-dropdown__trigger{padding:6px 0px 6px 14px;}.lsd-dropdown--medium .lsd-dropdown__icons{padding:0px 12px;}.lsd-dropdown--small{width:164px;}.lsd-dropdown--small.lsd-dropdown--error{width:186px;}.lsd-dropdown--small .lsd-dropdown__label{margin:0 0 6px 12px;}.lsd-dropdown--small .lsd-dropdown__button-container{height:28px;}.lsd-dropdown--small .lsd-dropdown__trigger{padding:6px 0px 6px 12px;}.lsd-dropdown--small .lsd-dropdown__icons{padding:0px 10px;}.lsd-dropdown--outlined .lsd-dropdown__button-container{border:1px solid rgb(var(--lsd-border-primary));}.lsd-dropdown--underlined .lsd-dropdown__button-container{border:1px solid transparent;border-bottom:1px solid rgb(var(--lsd-border-primary));}</style><style data-emotion="css-global w2g5fy">.lsd-dropdown-item{width:100%;box-sizing:border-box;display:-webkit-box;display:-webkit-flex;display:-ms-flexbox;display:flex;-webkit-flex-direction:row;-ms-flex-direction:row;flex-direction:row;-webkit-align-items:center;-webkit-box-align:center;-ms-flex-align:center;align-items:center;border:1px solid rgb(var(--lsd-border-primary));}.lsd-dropdown-item:not(.lsd-dropdown-item--disabled){cursor:pointer;}.lsd-dropdown-item:not(.lsd-dropdown-item--disabled):hover,.lsd-dropdown-item:not(.lsd-dropdown-item--disabled):focus{outline:none;}.lsd-dropdown-item:not(.lsd-dropdown-item--disabled):hover .lsd-dropdown-item__label,.lsd-dropdown-item:not(.lsd-dropdown-item--disabled):focus .lsd-dropdown-item__label{-webkit-text-decoration:underline;text-decoration:underline;}.lsd-dropdown-item__label{display:block;overflow:hidden;white-space:nowrap;text-overflow:ellipsis;}.lsd-dropdown-item--disabled{opacity:0.34;}.lsd-dropdown-item__icon{margin-right:18px;-webkit-flex-shrink:0;-ms-flex-negative:0;flex-shrink:0;}.lsd-dropdown-item--small{padding:5px 9px;height:28px;}.l
2025-08-13 03:52:48 +00:00
<h2 class="anchor anchorWithHideOnScrollNavbar_WYt5" id="application-level-config">Application-level config<a href="#application-level-config" class="hash-link" aria-label="Direct link to Application-level config" title="Direct link to Application-level config"></a></h2>
<table><thead><tr><th>Name</th><th>Default Value</th><th>Description</th></tr></thead><tbody><tr><td><code>config-file</code></td><td></td><td>Loads configuration from a TOML file (cmd-line parameters take precedence)</td></tr><tr><td><code>protected-shard</code></td><td><code>newSeq[ProtectedShard](0)</code></td><td>Shards and its public keys to be used for message validation, shard:pubkey. Argument may be repeated</td></tr></tbody></table>
<h2 class="anchor anchorWithHideOnScrollNavbar_WYt5" id="log-config">Log config<a href="#log-config" class="hash-link" aria-label="Direct link to Log config" title="Direct link to Log config"></a></h2>
<table><thead><tr><th>Name</th><th>Default Value</th><th>Description</th></tr></thead><tbody><tr><td><code>log-level</code></td><td><code>logging.LogLevel.INFO</code></td><td>Sets the log level for process. Supported levels: TRACE, DEBUG, INFO, NOTICE, WARN, ERROR or FATAL</td></tr><tr><td><code>log-format</code></td><td><code>logging.LogFormat.TEXT</code></td><td>Specifies what kind of logs should be written to stdout. Supported formats: TEXT, JSON</td></tr></tbody></table>
<h2 class="anchor anchorWithHideOnScrollNavbar_WYt5" id="general-node-config">General node config<a href="#general-node-config" class="hash-link" aria-label="Direct link to General node config" title="Direct link to General node config"></a></h2>
<table><thead><tr><th>Name</th><th>Default Value</th><th>Description</th></tr></thead><tbody><tr><td><code>cluster-id</code></td><td><code>0</code></td><td>Cluster id that the node is running in. Node in a different cluster id is disconnected</td></tr><tr><td><code>agent-string</code></td><td><code>nwaku</code></td><td>Node agent string which is used as identifier in network</td></tr><tr><td><code>nodekey</code></td><td></td><td>P2P node private key as 64-char hex string</td></tr><tr><td><code>listen-address</code></td><td><code>defaultListenAddress()</code></td><td>Listening address for LibP2P (and Discovery v5, if enabled) traffic</td></tr><tr><td><code>tcp-port</code></td><td><code>60000</code></td><td>TCP listening port</td></tr><tr><td><code>ports-shift</code></td><td><code>0</code></td><td>Add a shift to all port numbers</td></tr><tr><td><code>nat</code></td><td>any</td><td>Specify method to use for determining public address. Must be one of: any, none, upnp, pmp, extip:IP</td></tr><tr><td><code>ext-multiaddr</code></td><td></td><td>External multiaddresses to advertise to the network. Argument may be repeated</td></tr><tr><td><code>ext-multiaddr-only</code></td><td><code>false</code></td><td>Only announce external multiaddresses</td></tr><tr><td><code>max-connections</code></td><td><code>50</code></td><td>Maximum allowed number of libp2p connections</td></tr><tr><td><code>relay-service-ratio</code></td><td><code>&quot;60:40&quot;</code></td><td>This percentage ratio represents the relay peers to service peers. For example, 60:40, tells that 60% of the max-connections will be used for relay protocol and the other 40% of max-connections will be reserved for other service protocols (e.g., filter, lightpush, store, metadata, etc.)</td></tr><tr><td><code>peer-store-capacity</code></td><td></td><td>Maximum stored peers in the peerstore</td></tr><tr><td><code>peer-persistence</code></td><td><code>false</code></td><td>Enable peer persistence</td></tr></tbody></table>
<h2 class="anchor anchorWithHideOnScrollNavbar_WYt5" id="dns-addrs-config">DNS addrs config<a href="#dns-addrs-config" class="hash-link" aria-label="Direct link to DNS addrs config" title="Direct link to DNS addrs config"></a></h2>
<table><thead><tr><th>Name</th><th>Default Value</th><th>Description</th></tr></thead><tbody><tr><td><code>dns-addrs</code></td><td><code>true</code></td><td>Enable resolution of <code>dnsaddr</code>, <code>dns4</code> or <code>dns6</code> multiaddrs</td></tr><tr><td><code>dns-addrs-name-server</code></td><td><code>[&quot;1.1.1.1&quot;, &quot;1.0.0.1&quot;]</code></td><td>DNS name server IPs to query for DNS multiaddrs resolution. Argument may be repeated</td></tr><tr><td><code>dns4-domain-name</code></td><td></td><td>The domain name resolving to the node&#x27;s public IPv4 address</td></tr></tbody></table>
<h2 class="anchor anchorWithHideOnScrollNavbar_WYt5" id="relay-config">Relay config<a href="#relay-config" class="hash-link" aria-label="Direct link to Relay config" title="Direct link to Relay config"></a></h2>
2025-09-29 05:17:21 +00:00
<table><thead><tr><th>Name</th><th>Default Value</th><th>Description</th></tr></thead><tbody><tr><td><code>relay</code></td><td><code>true</code></td><td>Enable relay protocol: true|false</td></tr><tr><td><code>relay-peer-exchange</code></td><td><code>false</code></td><td>Enable gossipsub peer exchange in relay protocol: true|false</td></tr><tr><td><code>rln-relay</code></td><td><code>false</code></td><td>Enable spam protection through rln-relay: true|false</td></tr><tr><td><code>rln-relay-cred-path</code></td><td></td><td>The path for persisting rln-relay credential</td></tr><tr><td><code>rln-relay-membership-index</code></td><td></td><td>The index of the onchain commitment to use</td></tr><tr><td><code>rln-relay-dynamic</code></td><td><code>false</code></td><td>Enable waku-rln-relay with on-chain dynamic group management: true|false</td></tr><tr><td><code>rln-relay-id-key</code></td><td></td><td>Rln relay identity secret key as a Hex string</td></tr><tr><td><code>rln-relay-id-commitment-key</code></td><td></td><td>Rln relay identity commitment key as a Hex string</td></tr><tr><td><code>rln-relay-eth-client-address</code></td><td><code>ws://localhost:8540/</code></td><td>WebSocket address of an Ethereum testnet client e.g., <code>ws://localhost:8540/</code></td></tr><tr><td><code>rln-relay-eth-contract-address</code></td><td></td><td>Address of membership contract on an Ethereum testnet</td></tr><tr><td><code>rln-relay-eth-private-key</code></td><td></td><td>Private key for broadcasting transactions</td></tr><tr><td><code>execute</code></td><td><code>false</code></td><td>Runs the registration function on-chain. By default, a dry-run will occur</td></tr><tr><td><code>rln-relay-cred-password</code></td><td></td><td>Password for encrypting RLN credentials</td></tr><tr><td><code>rln-relay-bandwidth-threshold</code></td><td><code>0 # to maintain backwards compatibility</code></td><td>Message rate in bytes/sec after which verification of proofs should happen</td></tr><tr><td><code>staticnode</code></td><td></td><td>Peer multiaddr to directly connect with. Argument may be repeated</td></tr><tr><td><code>keep-alive</code></td><td><code>false</code></td><td>Enable keep-alive for idle connections: true|false</td></tr><tr><td><code>pubsub-topic</code></td><td></td><td>Default pubsub topic to subscribe to. Argument may be repeated. <strong>Deprecated!</strong> Please use <code>shard</code> and/or <code>content-topic</code> instead</td></tr><tr><td><code>shard</code></td><td></td><td>Shard to subscribe to. Argument may be repeated</td></tr><tr><td><code>num-shards-in-network</code></td><td></td><td>Number of shards in the network. Used to map content topics to shards when using autosharding</td></tr><tr><td><code>content-topic</code></td><td></td><td>Default content topic to subscribe to. Argument may be repeated</td></tr><tr><td><code>reliability</code></td><td><code>false</code></td><td>Enable experimental reliability protocol true|false</td></tr></tbody></table>
2025-08-13 03:52:48 +00:00
<h2 class="anchor anchorWithHideOnScrollNavbar_WYt5" id="store-and-message-store-config">Store and message store config<a href="#store-and-message-store-config" class="hash-link" aria-label="Direct link to Store and message store config" title="Direct link to Store and message store config"></a></h2>
<table><thead><tr><th>Name</th><th>Default Value</th><th>Description</th></tr></thead><tbody><tr><td><code>store</code></td><td><code>false</code></td><td>Enable/disable waku store protocol</td></tr><tr><td><code>storenode</code></td><td></td><td>Peer multiaddress to query for storage</td></tr><tr><td><code>store-message-retention-policy</code></td><td><code>time:172800</code></td><td>Message store retention policy. Time retention policy: <code>time:&lt;seconds&gt;</code>. Capacity retention policy: <code>capacity:&lt;count&gt;</code>. Size retention policy: <code>size:&lt;xMB/xGB&gt;</code>. Set to <code>none</code> to disable</td></tr><tr><td><code>store-message-db-url</code></td><td><code>sqlite://store.sqlite3</code></td><td>The database connection URL for persistent storage</td></tr><tr><td><code>store-message-db-vacuum</code></td><td><code>false</code></td><td>Enable database vacuuming at start. Only supported by SQLite database engine</td></tr><tr><td><code>store-message-db-migration</code></td><td><code>true</code></td><td>Enable database migration at start</td></tr></tbody></table>
<h2 class="anchor anchorWithHideOnScrollNavbar_WYt5" id="store-sync">Store Sync<a href="#store-sync" class="hash-link" aria-label="Direct link to Store Sync" title="Direct link to Store Sync"></a></h2>
<table><thead><tr><th>Name</th><th>Default Value</th><th>Description</th></tr></thead><tbody><tr><td><code>store-sync</code></td><td><code>false</code></td><td>Enable/disable waku store sync protocol</td></tr><tr><td><code>store-sync-interval</code></td><td><code>300</code> 5 minutes</td><td>Interval between store synchronization attempts</td></tr><tr><td><code>store-sync-range</code></td><td><code>3600</code> 1 hour</td><td>Amount of time to sync</td></tr><tr><td><code>store-sync-relay-jitter</code></td><td><code>20</code> seconds</td><td>Sync range offset to account for relay&#x27;s message propagation jitter</td></tr></tbody></table>
<h2 class="anchor anchorWithHideOnScrollNavbar_WYt5" id="filter-config">Filter config<a href="#filter-config" class="hash-link" aria-label="Direct link to Filter config" title="Direct link to Filter config"></a></h2>
<table><thead><tr><th>Name</th><th>Default Value</th><th>Description</th></tr></thead><tbody><tr><td><code>filter</code></td><td><code>false</code></td><td>Enable filter protocol: true|false</td></tr><tr><td><code>filternode</code></td><td></td><td>Peer multiaddr to request content filtering of messages</td></tr><tr><td><code>filter-subscription-timeout</code></td><td><code>300 # 5 minutes</code></td><td>Timeout for filter subscription without ping or refresh it, in seconds. Only for v2 filter protocol</td></tr><tr><td><code>filter-max-peers-to-serve</code></td><td><code>1000</code></td><td>Maximum number of peers to serve at a time. Only for v2 filter protocol</td></tr><tr><td><code>filter-max-criteria</code></td><td><code>1000</code></td><td>Maximum number of pubsub and content topic combinations per peer at a time. Only for v2 filter protocol</td></tr></tbody></table>
<h2 class="anchor anchorWithHideOnScrollNavbar_WYt5" id="light-push-config">Light push config<a href="#light-push-config" class="hash-link" aria-label="Direct link to Light push config" title="Direct link to Light push config"></a></h2>
2025-10-13 04:00:43 +00:00
<table><thead><tr><th>Name</th><th>Default Value</th><th>Description</th><th></th></tr></thead><tbody><tr><td><code>lightpush</code></td><td><code>false</code></td><td>Enable lightpush protocol: true</td><td>false</td></tr><tr><td><code>lightpushnode</code></td><td></td><td>Peer multiaddr to request lightpush of published messages</td><td></td></tr></tbody></table>
2025-08-13 03:52:48 +00:00
<h2 class="anchor anchorWithHideOnScrollNavbar_WYt5" id="rest-http-config">REST HTTP config<a href="#rest-http-config" class="hash-link" aria-label="Direct link to REST HTTP config" title="Direct link to REST HTTP config"></a></h2>
<table><thead><tr><th>Name</th><th>Default Value</th><th>Description</th></tr></thead><tbody><tr><td><code>rest</code></td><td><code>false</code></td><td>Enable Waku REST HTTP server: true|false</td></tr><tr><td><code>rest-address</code></td><td><code>127.0.0.1</code></td><td>Listening address of the REST HTTP server</td></tr><tr><td><code>rest-port</code></td><td><code>8645</code></td><td>Listening port of the REST HTTP server</td></tr><tr><td><code>rest-relay-cache-capacity</code></td><td><code>30</code></td><td>Capacity of the Relay REST API message cache</td></tr><tr><td><code>rest-admin</code></td><td><code>false</code></td><td>Enable access to REST HTTP Admin API: true|false</td></tr><tr><td><code>rest-allow-origin</code></td><td></td><td>Allow cross-origin requests from the specified origin. When using the REST API in a browser, specify the origin host to get a valid response from the node REST HTTP server. This option may be repeated and can contain wildcards (?,*) for defining URLs and ports such as <code>localhost:*</code>, <code>127.0.0.1:8080</code>, or allow any website with <code>*</code></td></tr></tbody></table>
<h2 class="anchor anchorWithHideOnScrollNavbar_WYt5" id="metrics-config">Metrics config<a href="#metrics-config" class="hash-link" aria-label="Direct link to Metrics config" title="Direct link to Metrics config"></a></h2>
<table><thead><tr><th>Name</th><th>Default Value</th><th>Description</th></tr></thead><tbody><tr><td><code>metrics-server</code></td><td><code>false</code></td><td>Enable the metrics server: true|false</td></tr><tr><td><code>metrics-server-address</code></td><td><code>127.0.0.1</code></td><td>Listening address of the metrics server</td></tr><tr><td><code>metrics-server-port</code></td><td><code>8008</code></td><td>Listening HTTP port of the metrics server</td></tr><tr><td><code>metrics-logging</code></td><td><code>true</code></td><td>Enable metrics logging: true|false</td></tr></tbody></table>
<h2 class="anchor anchorWithHideOnScrollNavbar_WYt5" id="dns-discovery-config">DNS discovery config<a href="#dns-discovery-config" class="hash-link" aria-label="Direct link to DNS discovery config" title="Direct link to DNS discovery config"></a></h2>
<table><thead><tr><th>Name</th><th>Default Value</th><th>Description</th></tr></thead><tbody><tr><td><code>dns-discovery</code></td><td><code>false</code></td><td>Enable discovering nodes via DNS</td></tr><tr><td><code>dns-discovery-url</code></td><td></td><td>URL for DNS node list in format <code>&#x27;enrtree://&lt;key\&gt;@&lt;fqdn\&gt;&#x27;</code></td></tr><tr><td><code>dns-discovery-name-server</code></td><td><code>[&quot;1.1.1.1&quot;, &quot;1.0.0.1&quot;]</code></td><td>DNS name server IPs to query. Argument may be repeated</td></tr><tr><td><code>rendezvous</code></td><td><code>true</code></td><td>Enable waku rendezvous discovery server</td></tr></tbody></table>
<h2 class="anchor anchorWithHideOnScrollNavbar_WYt5" id="discv5-config">Discv5 config<a href="#discv5-config" class="hash-link" aria-label="Direct link to Discv5 config" title="Direct link to Discv5 config"></a></h2>
<table><thead><tr><th>Name</th><th>Default Value</th><th>Description</th></tr></thead><tbody><tr><td><code>discv5-discovery</code></td><td><code>false</code></td><td>Enable discovering nodes via Node Discovery v5</td></tr><tr><td><code>discv5-udp-port</code></td><td><code>9000</code></td><td>Listening UDP port for Node Discovery v5</td></tr><tr><td><code>discv5-bootstrap-node</code></td><td></td><td>Text-encoded ENR for bootstrap node. Used when connecting to the network. Argument may be repeated</td></tr><tr><td><code>discv5-enr-auto-update</code></td><td><code>false</code></td><td>Discovery can automatically update its ENR with the IP address</td></tr><tr><td><code>discv5-table-ip-limit</code></td><td><code>10</code></td><td>Maximum amount of nodes with the same IP in discv5 routing tables</td></tr><tr><td><code>discv5-bucket-ip-limit</code></td><td><code>2</code></td><td>Maximum amount of nodes with the same IP in discv5 routing table buckets</td></tr><tr><td><code>discv5-bits-per-hop</code></td><td><code>1</code></td><td>Kademlia&#x27;s b variable, increase for less hops per lookup</td></tr></tbody></table>
<h2 class="anchor anchorWithHideOnScrollNavbar_WYt5" id="waku-peer-exchange-config">Waku peer exchange config<a href="#waku-peer-exchange-config" class="hash-link" aria-label="Direct link to Waku peer exchange config" title="Direct link to Waku peer exchange config"></a></h2>
<table><thead><tr><th>Name</th><th>Default Value</th><th>Description</th></tr></thead><tbody><tr><td><code>peer-exchange</code></td><td><code>false</code></td><td>Enable waku peer exchange protocol (responder side): true|false</td></tr><tr><td><code>peer-exchange-node</code></td><td></td><td>Peer multiaddr to send peer exchange requests to. (enables peer exchange protocol requester side)</td></tr></tbody></table>
<h2 class="anchor anchorWithHideOnScrollNavbar_WYt5" id="websocket-config">WebSocket config<a href="#websocket-config" class="hash-link" aria-label="Direct link to WebSocket config" title="Direct link to WebSocket config"></a></h2>
<table><thead><tr><th>Name</th><th>Default Value</th><th>Description</th></tr></thead><tbody><tr><td><code>websocket-support</code></td><td><code>false</code></td><td>Enable websocket: true|false</td></tr><tr><td><code>websocket-port</code></td><td><code>8000</code></td><td>WebSocket listening port</td></tr><tr><td><code>websocket-secure-support</code></td><td><code>false</code></td><td>Enable secure websocket: true|false</td></tr><tr><td><code>websocket-secure-key-path</code></td><td></td><td>Secure websocket key path: &#x27;/path/to/key.txt&#x27;</td></tr><tr><td><code>websocket-secure-cert-path</code></td><td></td><td>Secure websocket Certificate path: &#x27;/path/to/cert.txt&#x27;</td></tr></tbody></table>
<h2 class="anchor anchorWithHideOnScrollNavbar_WYt5" id="non-relay-request-response-protocol-dos-protection-configuration">Non-relay, request-response protocol DOS protection configuration<a href="#non-relay-request-response-protocol-dos-protection-configuration" class="hash-link" aria-label="Direct link to Non-relay, request-response protocol DOS protection configuration" title="Direct link to Non-relay, request-response protocol DOS protection configuration"></a></h2>
<table><thead><tr><th>Name</th><th>Default Value</th><th>Description</th></tr></thead><tbody><tr><td><code>rate-limit</code></td><td></td><td>This is a repeatable option. Each can describe a specific rate limit configuration for a particular protocol.<br>Formatted as:<code>&lt;protocol&gt;:volume/period&lt;time-unit&gt;</code><br>- if protocol is not given, settings will be taken as default for un-set protocols. Ex: <code>80/2s</code><br>-Supported protocols are: <code>lightpush</code>|<code>filter</code>|<code>px</code>|<code>store</code>|<code>storev2</code>|<code>storev3</code><br>-volume must be an integer value, representing number of requests over the period of time allowed.<br>-period&lt;time-unit&gt; must be an integer with defined unit as one of <code>h</code>|<code>m</code>|<code>s</code>|<code>ms</code><br>- <code>storev2</code> and <code>storev3</code> takes precedence over <code>store</code> which can easy set both store protocols at once.<br>- In case of multiple set of the same protocol limit, last one will take place.<br>- if config is not set, - which is the default - means unlimited requests are allowed.<br>-filter has a bit different approach. It has a default setting applied if not overridden. Rate limit setting for filter will be applied per subscriber-peers, not globally - it must be considered when changing the setting.<br><br>Examples:<br><code>--rate-limit=&quot;100/1s&quot;</code> - default for all protocols if not set otherwise.<br><code>--rate-limit=&quot;lightpush:0/0s&quot;</code> - lightpush protocol will not be rate-limited.<br><code>--rate-limit=&quot;store:130/1500ms&quot;</code> - both store-v3 and store-v2 will apply 130 request per each 1500ms separately.<br><code>--rate-limit=&quot;px:10/1h&quot;</code> PeerExchange will serve only 10 requests every hour.<br><code>--rate-limit=&quot;filter:8/5m&quot;</code> - will allow 8 subs/unsubs/ping requests for each subscriber within every 5 min.</td></tr></tbody></table>
2025-10-03 11:14:33 +00:00
<div class="theme-admonition theme-admonition-tip alert--success admonition_ntHH"><span class="admonitionIcon_BGV6"><svg width="16" height="16" viewBox="0 0 16 16" xmlns="http://www.w3.org/2000/svg"><path d="M8 14.6666C7.63333 14.6666 7.31933 14.536 7.058 14.2746C6.79667 14.0133 6.66622 13.6995 6.66667 13.3333H9.33333C9.33333 13.7 9.20267 14.014 8.94133 14.2753C8.68 14.5366 8.36622 14.6671 8 14.6666ZM5.33333 12.6666V11.3333H10.6667V12.6666H5.33333ZM5.5 10.6666C4.73333 10.2111 4.12489 9.59998 3.67467 8.83331C3.22445 8.06665 2.99956 7.23331 3 6.33331C3 4.94442 3.48622 3.76376 4.45867 2.79131C5.43111 1.81887 6.61156 1.33287 8 1.33331C9.38889 1.33331 10.5696 1.81954 11.542 2.79198C12.5144 3.76442 13.0004 4.94487 13 6.33331C13 7.23331 12.7751 8.06665 12.3253 8.83331C11.8756 9.59998 11.2671 10.2111 10.5 10.6666H5.5ZM5.9 9.33331H10.1C10.6 8.97776 10.9862 8.53887 11.2587 8.01665C11.5311 7.49442 11.6671 6.93331 11.6667 6.33331C11.6667 5.31109 11.3111 4.44442 10.6 3.73331C9.88889 3.0222 9.02222 2.66665 8 2.66665C6.97778 2.66665 6.11111 3.0222 5.4 3.73331C4.68889 4.44442 4.33333 5.31109 4.33333 6.33331C4.33333 6.93331 4.46956 7.49442 4.742 8.01665C5.01444 8.53887 5.40045 8.97776 5.9 9.33331Z" fill="currentColor"></path></svg></span><div><span class="lsd-typography lsd-typography--body1 admonitionHeading_JPfy">tip</span><span class="lsd-typography lsd-typography--body1 admonitionContent_iozl"><p>To configure your node using the provided configuration options, have a look at the <a href="/run-node/config-methods">Node Configuration Methods</a> guide.</p></span></div></div></div><footer class="theme-doc-footer docusaurus-mt-lg"><div class="row margin-top--sm theme-doc-footer-edit-meta-row"><div class="col"><a href="https://github.com/waku-org/docs.waku.org/tree/develop/docs/run-node/config-options.md" target="_blank" rel="noreferrer noopener" class="theme-edit-this-page"><div class="icon_S7Kx m_thRi"><svg xmlns="http://www.w3.org/2000/svg" width="16" height="16" fill="none" viewBox="0 0 16 16"><path fill="#fff" fill-rule="evenodd" d="m12.707 2.393.9.9c.526.52.526 1.367 0 1.887L4.787 14H2v-2.787l6.933-6.94 1.887-1.88c.52-.52 1.367-.52 1.887 0M3.333 12.667l.94.04 6.547-6.554-.94-.94-6.547 6.547z" clip-rule="evenodd"></path></svg></div><span class="lsd-typography lsd-typography--body2">Edit this page</span></a></div><div class="col lastUpdated_JAkA"></div></div></footer></article><nav class="docusaurus-mt-lg pagination-nav" aria-label="Docs pages"><a class="pagination-nav__link pagination-nav__link--prev" href="/run-node/config-methods"><div class="icon_S7Kx m_thRi"><svg xmlns="http://www.w3.org/2000/svg" width="14" height="14" fill="none" viewBox="0 0 14 14"><path fill="#fff" d="M11.667 6.417h-7.1L7.83 3.156 7 2.333 2.334 7 7 11.667l.823-.823-3.255-3.26h7.099z"></path></svg></div><span class="lsd-typography lsd-typography--body2 pagination-nav__label">Node Configuration Methods</span></a><a class="pagination-nav__link pagination-nav__link--next" href="/run-node/configure-nwaku"><span class="lsd-typography lsd-typography--body2 pagination-nav__label">Node Configuration Examples</span><div class="icon_S7Kx m_thRi"><svg xmlns="http://www.w3.org/2000/svg" width="14" height="14" fill="none" viewBox="0 0 14 14"><path fill="#fff" d="m7 2.334-.823.822 3.255 3.26H2.333v1.167h7.1l-3.256 3.261.823.823L11.667 7z"></path></svg></div></a></nav></div></div><div class="gap1_XuuQ"></div></div></div></main></div></div></div><footer class="footer"><div class="container container-fluid firstRow_ar1q"><div class="footer__bottom text--center"><div class="margin-bottom--sm"><a class="footerLogoLink_BH7S" href="/"><img src="/theme/image/logo.svg" alt="Waku" class="themedImage_kfRS themedImage--light_BL8e footer__logo" width="22"><img src="/theme/image/logo.svg" alt="Waku" class="themedImage_kfRS themedImage--dark_OvIx footer__logo" width="22"></a></div><div class="footer__copyright">Waku</div></div><div class="row footer__links"><div class="theme-layout-footer-column col footer__col"><div class="footer__title">Community</div><ul class="footer__items clean-lis
2024-02-20 09:41:47 +00:00
</body>
</html>