-
Notifications
You must be signed in to change notification settings - Fork 9
/
Copy pathmain.yml
140 lines (115 loc) · 4.76 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
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
---
nim_waku_cont_tag: 'latest'
nim_waku_cont_image: 'harbor.status.im/wakuorg/nwaku:{{ nim_waku_cont_tag }}'
nim_waku_cont_name: 'nim-waku'
nim_waku_cont_vol: '/docker/{{ nim_waku_cont_name }}'
nim_waku_cont_network: '{{ nim_waku_cont_name }}'
# Config
nim_waku_node_conf_path: '{{ nim_waku_cont_vol }}/conf'
# Node database path
nim_waku_node_db_path: '{{ nim_waku_cont_vol }}/data'
# TMPDIR for Sqlite to use when acuuming to free space. Takes effect on creation.
nim_waku_node_tmp_path: '{{ nim_waku_cont_vol }}/data/tmp'
# 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'
# Waku Messages
#nim_waku_max_msg_size: 'size:150KiB'
# Optional cluster-id flag
#nim_waku_cluster_id: 1
# Protocols
nim_waku_protocols_available: ['relay', 'store', 'filter', 'lightpush', 'rln-relay', 'peer-exchange', 'store-sync']
nim_waku_protocols_enabled: ['relay', 'store', 'filter', 'lightpush']
# Topic configuration
nim_waku_shards: [0, 1, 2, 3, 4, 5, 6, 7]
# Shards and its public key to be used for message validation.
nim_waku_protected_shards: []
# 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_rest_enabled: true
nim_waku_rest_addr: '127.0.0.1'
nim_waku_rest_port: 8645
nim_waku_rest_apis_enabled: ['admin'] # admin
nim_waku_websock_port: 8000
nim_waku_disc_v5_port: 9000
nim_waku_p2p_tcp_port: 30303
nim_waku_p2p_udp_port: 30303
# P2P Connections
nim_waku_p2p_max_connections: 150
nim_waku_max_relay_peers: '{{ nim_waku_p2p_max_connections }}'
nim_waku_keep_alive: true
nim_waku_peer_persistence: false
#nim_waku_ip_colocation_limit: 2
# Store
nim_waku_store_message_retention_policy: 'time:604800' # 7 days
nim_waku_store_vacuum: false
nim_waku_store_message_db_url: 'sqlite:///data/store.sqlite3'
# RLN Relay parameters
nim_waku_rln_relay_tree_path: '/data/rln_relay_tree'
nim_waku_rln_relay_dynamic: true
nim_waku_rln_relay_eth_account_address: '0000000000000000000000000000000000000000'
nim_waku_rln_relay_eth_contract_address: '0xF471d71E9b1455bBF4b85d475afb9BB0954A29c4'
#nim_waku_rln_relay_eth_client_address: 'http://geth.example.org:8545'
#nim_waku_relay_shard_manager: false
# RLN Keystore parameters
nim_waku_node_keystore_path: '{{ nim_waku_node_db_path }}/keystore'
nim_waku_rln_keystore_active: false
nim_waku_rln_keystore_path: '/data/keystore/keystore.json'
#nim_waku_rln_account_key: 'PrivateKey'
#nim_waku_rln_cred_password: 'ChangeMeIfYouCare'
# Store Sync
nim_waku_store_sync_interval: 300
nim_waku_store_sync_range: 3600
# 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'
# 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
# container monitor service
nim_waku_monitor_enabled: true
nim_waku_monitor_meta_fields: ['image', 'commit', 'version']
nim_waku_monitor_docker_events: ['stop', 'start', 'restart', 'die', 'kill']
nim_waku_monitor_service_name: 'monitor-{{ nim_waku_cont_name }}'
nim_waku_monitor_service_user: 'root'
nim_waku_monitor_service_work_dir: '/etc/consul'
nim_waku_monitor_script: '{{ nim_waku_cont_vol }}/monitor.sh'
# Consul Service
nim_waku_consul_config_name: '{{ nim_waku_cont_name | replace("-", "_") }}'
nim_waku_consul_service_name: 'nim-waku'
nim_waku_consul_check_disabled: false
nim_waku_consul_check_interval: '60s'
nim_waku_consul_check_timeout: '5s'
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: 'auto'
compose_state: 'present'
compose_pull: 'always'