2023-10-10 10:12:43 +00:00
|
|
|
---
|
|
|
|
|
|
|
|
# Tag dependent on fleet: test
|
2023-10-10 14:53:42 +00:00
|
|
|
nim_waku_cont_tag: 'deploy-{{ env }}-{{ stage }}'
|
2023-10-10 10:12:43 +00:00
|
|
|
nim_waku_cont_name: 'nim-waku'
|
2024-03-07 10:02:12 +00:00
|
|
|
nim_waku_cont_vol: '/docker/{{ nim_waku_cont_name }}'
|
|
|
|
nim_waku_node_conf_path: '{{ nim_waku_cont_vol }}/conf'
|
2023-10-10 10:12:43 +00:00
|
|
|
nim_waku_log_level: 'debug'
|
2023-11-14 08:27:28 +00:00
|
|
|
nim_waku_protocols_enabled: ['relay', 'rln-relay', 'store', 'filter', 'lightpush', 'peer-exchange']
|
2023-10-10 10:12:43 +00:00
|
|
|
nim_waku_disc_v5_enabled: true
|
|
|
|
nim_waku_dns4_domain_name: '{{ dns_entry }}'
|
2023-10-10 13:04:36 +00:00
|
|
|
nim_waku_node_key: '{{lookup("bitwarden", "fleets/"+env+"/"+stage+"/nodekeys", field=hostname)}}'
|
2023-11-07 10:00:53 +00:00
|
|
|
nim_waku_cluster_id: 1
|
2024-01-30 12:29:29 +00:00
|
|
|
nim_waku_relay_shard_manager: true
|
2023-10-10 10:12:43 +00:00
|
|
|
|
|
|
|
# Subscribe to all shards
|
|
|
|
nim_waku_pubsub_topics:
|
|
|
|
- '/waku/2/rs/1/0'
|
|
|
|
- '/waku/2/rs/1/1'
|
|
|
|
- '/waku/2/rs/1/2'
|
|
|
|
- '/waku/2/rs/1/3'
|
|
|
|
- '/waku/2/rs/1/4'
|
|
|
|
- '/waku/2/rs/1/5'
|
|
|
|
- '/waku/2/rs/1/6'
|
|
|
|
- '/waku/2/rs/1/7'
|
|
|
|
|
|
|
|
# Ports
|
|
|
|
nim_waku_p2p_tcp_port: 30303
|
|
|
|
nim_waku_metrics_port: 8008
|
|
|
|
nim_waku_disc_v5_port: 9000
|
|
|
|
nim_waku_websock_port: 8000
|
|
|
|
nim_waku_rpc_tcp_port: 8545
|
|
|
|
|
|
|
|
# Limits
|
|
|
|
nim_waku_p2p_max_connections: 300
|
|
|
|
|
|
|
|
# Store
|
2023-10-10 13:04:36 +00:00
|
|
|
nim_waku_store_message_db_name: 'nim-waku'
|
|
|
|
nim_waku_store_message_db_user: 'nim-waku'
|
|
|
|
nim_waku_store_message_db_pass: '{{lookup("bitwarden", "fleets/"+env+"/"+stage+"/db/nim-waku")}}'
|
|
|
|
nim_waku_store_message_db_url: 'postgres://{{ nim_waku_store_message_db_user}}:{{ nim_waku_store_message_db_pass}}@node-db-01.{{ ansible_domain }}.wg:5432/{{nim_waku_store_message_db_name}}'
|
2024-01-03 15:53:59 +00:00
|
|
|
nim_waku_store_message_retention_policy: 'time:432000' # 5 days
|
2024-01-04 12:27:01 +00:00
|
|
|
nim_waku_store_vacuum: true
|
2023-10-10 10:12:43 +00:00
|
|
|
|
|
|
|
# DNS Discovery
|
2023-11-06 14:24:35 +00:00
|
|
|
nim_waku_dns_disc_enabled: true
|
2024-03-08 15:48:16 +00:00
|
|
|
nim_waku_dns_disc_url_map:
|
|
|
|
test: 'enrtree://AOGYWMBYOUIMOENHXCHILPKY3ZRFEULMFI4DOM442QSZ73TT2A7VI@test.waku.nodes.status.im'
|
|
|
|
sandbox: 'enrtree://AIRVQ5DDA4FFWLRBCHJWUWOO6X6S4ZTZ5B667LQ6AJU6PEYDLRD5O@sandbox.waku.nodes.status.im'
|
|
|
|
nim_waku_dns_disc_url: '{{ nim_waku_dns_disc_url_map[stage] }}'
|
2023-10-10 10:12:43 +00:00
|
|
|
|
|
|
|
# Enable websockets in Waku
|
2023-11-14 08:27:28 +00:00
|
|
|
# Could run into the issue of overflowing ENR, might have to disable this.
|
2024-03-07 10:02:12 +00:00
|
|
|
nim_waku_websocket_enabled: true
|
2023-10-10 10:12:43 +00:00
|
|
|
nim_waku_websocket_secure_enabled: true
|
|
|
|
nim_waku_websocket_domain: '{{ dns_entry }}'
|
|
|
|
nim_waku_websocket_ssl_dir: '/etc/letsencrypt'
|
|
|
|
nim_waku_websocket_ssl_cert: '/etc/letsencrypt/live/{{ nim_waku_websocket_domain }}/fullchain.pem'
|
|
|
|
nim_waku_websocket_ssl_key: '/etc/letsencrypt/live/{{ nim_waku_websocket_domain }}/privkey.pem'
|
|
|
|
|
|
|
|
# Waku rln-relay parameters
|
|
|
|
nim_waku_rln_relay_dynamic: true
|
|
|
|
nim_waku_rln_relay_eth_contract_address: '0xF471d71E9b1455bBF4b85d475afb9BB0954A29c4'
|
2024-02-16 12:04:51 +00:00
|
|
|
nim_waku_rln_relay_eth_client_address: 'http://linux-01.ih-eu-mda1.nimbus.sepolia.wg:8556'
|
2023-10-10 10:12:43 +00:00
|
|
|
nim_waku_rln_relay_tree_path: '/data/rln_relay_tree'
|
|
|
|
|
|
|
|
# Consul Service
|
|
|
|
nim_waku_consul_success_before_passing: 5
|
|
|
|
nim_waku_consul_failures_before_warning: 2
|
|
|
|
nim_waku_consul_failures_before_critical: 20
|
|
|
|
|
|
|
|
# LetsEncrypt via Certbot
|
|
|
|
certbot_docker_enabled: true
|
|
|
|
certbot_admin_email: 'devops@status.im'
|
2024-03-07 10:02:12 +00:00
|
|
|
certbot_services_to_stop: ['nginx']
|
2023-10-10 10:12:43 +00:00
|
|
|
certbot_containers_to_stop: ['{{ nim_waku_cont_name }}']
|
|
|
|
certbot_certs:
|
2024-03-15 13:35:54 +00:00
|
|
|
- domains:
|
|
|
|
- '{{ nim_waku_websocket_domain }}'
|
|
|
|
- '{{ nim_waku_websocket_domain | replace("status.im", "statusim.net") }}' # Legacy Domain
|
2023-10-10 10:12:43 +00:00
|
|
|
|
|
|
|
# Connection limits
|
|
|
|
conn_limit_comment: 'WebSocket conn limit'
|
|
|
|
conn_limit_limit: 20
|
|
|
|
conn_limit_dport: '{{ nim_waku_websock_port }}'
|
|
|
|
|
|
|
|
# Open LibP2P Ports
|
|
|
|
open_ports_default_comment: '{{ nim_waku_cont_name }}'
|
|
|
|
open_ports_default_chain: 'SERVICES'
|
|
|
|
open_ports_default_protocol: 'tcp'
|
|
|
|
open_ports_list:
|
2024-03-07 10:02:12 +00:00
|
|
|
- { port: '80', comment: 'Nginx and Certbot' }
|
2023-10-10 10:12:43 +00:00
|
|
|
- { port: '{{ nim_waku_p2p_tcp_port }}' }
|
|
|
|
- { port: '{{ nim_waku_disc_v5_port }}', protocol: 'udp' }
|
|
|
|
- { port: '{{ nim_waku_websock_port }}' }
|
|
|
|
- { port: '{{ nim_waku_metrics_port }}', chain: 'VPN', ipset: 'metrics.hq' }
|
2024-03-07 10:02:12 +00:00
|
|
|
|
|
|
|
# Public Config file access
|
|
|
|
nginx_sites:
|
|
|
|
nim_waku_config:
|
|
|
|
- listen 80 default_server
|
|
|
|
- location = / {
|
|
|
|
return 302 /config.toml;
|
|
|
|
}
|
|
|
|
- location = /config.toml {
|
|
|
|
root {{ nim_waku_node_conf_path }};
|
|
|
|
try_files /config.toml =404;
|
|
|
|
types { text/plain toml; }
|
|
|
|
}
|