Ansible role for Go-Waku node configuration
https://github.com/status-im/go-waku
cf466135d4 | ||
---|---|---|
defaults | ||
meta | ||
tasks | ||
templates | ||
README.md |
README.md
⚠️ This is a legacy repository and no longer used.
Description
This Ansible role deploys a go-waku node which implements the Waku v2 spec.
Configuration
A basic config would include:
# Logging
go_waku_log_level: 'DEBUG'
# Ports
go_waku_libp2p_port: 9000
go_waku_metrics_port: 8008
go_waku_websocket_port: 9001
go_waku_metrics_enabled: true
go_waku_websocket_enabled: true
# Protocols
go_waku_relay_enabled: true
go_waku_store_enabled: true
go_waku_filter_enabled: true
go_waku_lightpush_enabled: true
go_waku_rendezvous_enabled: true
# Discovery
go_waku_dns_disc_enabled: true
go_waku_dns_disc_urls:
- 'enrtree://AIO6LUM3IVWCU2KCPBBI6FEH2W42IGK3ASCZHZGG5TIXUR56OGQUO@test.status.nodes.status.im'
- 'enrtree://AMOJVZX4V6EXP7NTJPMAYJYST2QP6AJXYW76IU6VGJS7UVSNDYZG4@boot.test.shards.nodes.status.im'
You can also configure Websocket with SSL:
go_waku_websocket_enabled: true
go_waku_websocket_secure_enabled: true
go_waku_websocket_port: 443
go_waku_websocket_ssl_dir: '/etc/letsencrypt'
go_waku_websocket_ssl_cert: '/etc/letsencrypt/live/{{ go_waku_websocket_domain }}/fullchain.pem'
go_waku_websocket_ssl_key: '/etc/letsencrypt/live/{{ go_waku_websocket_domain }}/privkey.pem'
Management
The node is deployed using Docker Compose:
> docker-compose ps
Name Command State Ports
------------------------------------------------------------------------------------------------------------------------------------------
go-waku-node /usr/bin/waku --nodekey=2f ... Up 0.0.0.0:30303->30303/tcp, 0.0.0.0:8008->8008/tcp, 9000/tcp, 0.0.0.0:9001->9001/tcp
> docker-compose up --force-recreate -d
Recreating go-waku-node ... done