-
Notifications
You must be signed in to change notification settings - Fork 9
/
main.yml
102 lines (81 loc) · 3.17 KB
/
main.yml
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
---
nim_waku_cont_tag: latest
nim_waku_cont_image: 'statusteam/nim-waku:{{ nim_waku_cont_tag }}'
nim_waku_cont_name: 'nim-waku'
nim_waku_cont_vol: '/docker/{{ nim_waku_cont_name }}'
# Node database path
nim_waku_node_db_path: '{{ nim_waku_cont_vol }}/data'
# Value for private node key which is used to create public enode key
#nim_waku_node_key: ~
nim_waku_node_key_file_path: '{{ nim_waku_cont_vol }}/nodekey'
# Protocols
nim_waku_protocols_available: ['relay', 'store', 'filter', 'swap', 'lightpush', 'rln-relay']
nim_waku_protocols_enabled: ['relay', 'store', 'filter', 'swap', 'lightpush']
# Available: error, warn, info, debug
nim_waku_log_level: 'info'
# experimental discovery support
nim_waku_discovery_enabled: false
# DNS Discovery
nim_waku_dns_disc_enabled: false
# nim_waku_dns_disc_url: 'enrtree://AOFTICU2XWDULNLZGRMQS4RIZPAZEHYMV4FYHAPW563HNRAOERP7C@test.waku.nodes.status.im'
# Discovery V5
nim_waku_disc_v5_enabled: false
nim_waku_disc_v5_enr_auto_update: false
nim_waku_disc_v5_bootstrap_nodes: []
# FQDN used iin announced dns4 multiaddresses.
nim_waku_dns4_domain_name: '{{ ansible_hostname }}'
nim_waku_public_address: '{{ ansible_host }}'
nim_waku_rpc_tcp_addr: '127.0.0.1'
nim_waku_rpc_tcp_port: 8545
nim_waku_websock_port: 8000
nim_waku_disc_v5_port: 9000
nim_waku_p2p_tcp_port: 30303
nim_waku_p2p_udp_port: 30303
# maximum libp2p connections
nim_waku_p2p_max_connections: 150
# maximum number of stored historical messages
nim_waku_store_capacity: 10000
# SQLite store
nim_waku_sqlite_store: false
nim_waku_sqlite_retention_time: 604800 # 7 days
# RLN Relay topic
#nim_waku_rln_relay_content_topic: ~
# metrics are disabled by default
nim_waku_metrics_enabled: true
nim_waku_metrics_port: 8008
# resource limits, mem in MB
nim_waku_cpu_limit: 0.70
nim_waku_mem_limit: '{{ (ansible_memtotal_mb * 0.7) | int }}'
nim_waku_cpu_reserve: 0.20
nim_waku_mem_reserve: '{{ (ansible_memtotal_mb * 0.2) | int }}'
#websocket config in nim waku
nim_waku_websocket_enabled: false
nim_waku_websocket_secure_enabled: false
nim_waku_websocket_domain: '{{ nim_waku_dns4_domain_name }}'
#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'
# WebSockets via Websockify
nim_waku_websockify_enabled: false
nim_waku_websockify_verbose: false
nim_waku_websockify_cont_name: 'websockify'
nim_waku_websockify_cont_tag: 'v0.10.0'
nim_waku_websockify_cont_image: 'statusteam/websockify:{{ nim_waku_websockify_cont_tag }}'
nim_waku_websockify_cont_port: 8080
nim_waku_websockify_domain: '{{ nim_waku_dns4_domain_name }}'
#nim_waku_websockify_ssl_dir: ~
#nim_waku_websockify_ssl_cert: ~
#nim_waku_websockify_ssl_key: ~
# For querying for fleet peers
consul_url: 'http://localhost:8500/v1/catalog'
# container restart policy
nim_waku_restart_condition: 'any'
nim_waku_restart_window_sec: 120
# Consul Service
nim_waku_consul_success_before_passing: 0
nim_waku_consul_failures_before_warning: 1
nim_waku_consul_failures_before_critical: 2
# general container management
compose_recreate: 'smart'
compose_state: 'present'
compose_restart: false