Ansible role for Go-Waku node configuration https://github.com/status-im/go-waku
Go to file
Anton Iakimov cf466135d4
readme: add a legacy warning
2024-02-09 12:17:56 +01:00
defaults docker: add cluster-id docker_add_cluster_id_flag 2023-12-07 14:16:12 -04:00
meta add role metadata 2022-02-17 12:00:40 +01:00
tasks consul: set protocols meta to support wakucanary 2023-11-09 17:02:41 +01:00
templates docker: add cluster-id docker_add_cluster_id_flag 2023-12-07 14:16:12 -04:00
README.md readme: add a legacy warning 2024-02-09 12:17:56 +01:00

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