mirror of
https://github.com/logos-messaging/docs.waku.org.git
synced 2026-01-04 05:43:07 +00:00
1 line
22 KiB
JavaScript
1 line
22 KiB
JavaScript
|
|
"use strict";(self.webpackChunkwaku_guide=self.webpackChunkwaku_guide||[]).push([[8722],{11077:(e,n,s)=>{s.r(n),s.d(n,{assets:()=>c,contentTitle:()=>d,default:()=>h,frontMatter:()=>t,metadata:()=>o,toc:()=>l});const o=JSON.parse('{"id":"run-node/configure-nwaku","title":"Node Configuration Examples","description":"This guide provides detailed steps to configure a nwaku node for different use cases.","source":"@site/docs/run-node/configure-nwaku.md","sourceDirName":"run-node","slug":"/run-node/configure-nwaku","permalink":"/run-node/configure-nwaku","draft":false,"unlisted":false,"editUrl":"https://github.com/waku-org/docs.waku.org/tree/develop/docs/run-node/configure-nwaku.md","tags":[],"version":"current","lastUpdatedAt":null,"frontMatter":{"title":"Node Configuration Examples","hide_table_of_contents":true,"displayed_sidebar":"runNode"},"sidebar":"runNode","previous":{"title":"Node Configuration Options","permalink":"/run-node/config-options"},"next":{"title":"Frequently Asked Questions","permalink":"/run-node/faq"}}');var r=s(74848),i=s(28453);const t={title:"Node Configuration Examples",hide_table_of_contents:!0,displayed_sidebar:"runNode"},d=void 0,c={},l=[{value:"Connect to other peers",id:"connect-to-other-peers",level:2},{value:"Configure a domain name",id:"configure-a-domain-name",level:2},{value:"Configure store protocol and message store",id:"configure-store-protocol-and-message-store",level:2},{value:"Configure store sync",id:"configure-store-sync",level:2},{value:"Generate and configure a node key",id:"generate-and-configure-a-node-key",level:2},{value:"Configure WebSocket transport",id:"configure-websocket-transport",level:2},{value:"Configure REST API server",id:"configure-rest-api-server",level:2},{value:"Configure filter protocol",id:"configure-filter-protocol",level:2},{value:"Configure light push protocol",id:"configure-light-push-protocol",level:2},{value:"Run nwaku behind a reverse proxy",id:"run-nwaku-behind-a-reverse-proxy",level:2}];function a(e){const n={a:"a",admonition:"admonition",code:"code",h2:"h2",li:"li",p:"p",pre:"pre",ul:"ul",...(0,i.R)(),...e.components};return(0,r.jsxs)(r.Fragment,{children:[(0,r.jsxs)(n.p,{children:["This guide provides detailed steps to configure a ",(0,r.jsx)(n.code,{children:"nwaku"})," node for different use cases."]}),"\n",(0,r.jsx)(n.h2,{id:"connect-to-other-peers",children:"Connect to other peers"}),"\n",(0,r.jsxs)(n.p,{children:["To join the Waku Network, nodes must ",(0,r.jsx)(n.a,{href:"/learn/glossary#bootstrapping",children:"bootstrap"})," for an entry point before discovering more peers. Nwaku provides multiple ",(0,r.jsx)(n.a,{href:"/learn/concepts/peer-discovery",children:"peer discovery"})," mechanisms:"]}),"\n",(0,r.jsxs)(n.ul,{children:["\n",(0,r.jsx)(n.li,{children:(0,r.jsx)(n.a,{href:"/run-node/configure-discovery#configure-static-peers",children:"Configure Static Peers"})}),"\n",(0,r.jsx)(n.li,{children:(0,r.jsx)(n.a,{href:"/run-node/configure-discovery#configure-dns-discovery",children:"Configure DNS Discovery"})}),"\n",(0,r.jsx)(n.li,{children:(0,r.jsx)(n.a,{href:"/run-node/configure-discovery#configure-discv5",children:"Configure Discv5"})}),"\n",(0,r.jsx)(n.li,{children:(0,r.jsx)(n.a,{href:"/run-node/configure-discovery#configure-peer-exchange",children:"Configure Peer Exchange"})}),"\n"]}),"\n",(0,r.jsx)(n.h2,{id:"configure-a-domain-name",children:"Configure a domain name"}),"\n",(0,r.jsxs)(n.p,{children:["You can set up an IPv4 DNS domain name that resolves to the public IPv4 address of a node using the ",(0,r.jsx)(n.code,{children:"dns4-domain-name"})," option. This allows the node's publicly announced multiaddrs to use the ",(0,r.jsx)(n.code,{children:"/dns4"})," scheme."]}),"\n",(0,r.jsx)(n.pre,{children:(0,r.jsx)(n.code,{className:"language-shell",children:"./build/wakunode2 --dns4-domain-name=[DOMAIN NAME]\n"})}),"\n",(0,r.jsxs)(n.p,{children:["For example, consider the domain name ",(0,r.jsx)(n.code,{children:"nwakunode.com"}),", which resolves to a ",(0,r.jsx)(n.code,{children:"nwaku"})," node:"]}),"\n",(0,r.jsx)(n.pre,{children:(0,r
|