2023-09-08 13:48:13 +00:00
|
|
|
---
|
2023-10-04 10:41:41 +00:00
|
|
|
# Custom SSH accounts, should start from UID 8000.
|
|
|
|
bootstrap__active_extra_users:
|
|
|
|
- { name: ivan, uid: 8000, groups: ['docker', 'dockremap'], key: 'ssh-ed25519 AAAAC3NzaC1lZDI1NTE5AAAAIJBdm8y1PfWjT1pioaWJSZ2ETrUySb+dS/ifDg+VIpLY ivansete@status.im' }
|
2023-09-08 13:48:13 +00:00
|
|
|
|
|
|
|
# Tag dependent on fleet: test
|
2024-03-15 13:22:59 +00:00
|
|
|
nim_waku_cont_tag: 'deploy-shards-{{ stage }}'
|
2023-09-08 13:48:13 +00:00
|
|
|
nim_waku_cont_name: 'nim-waku-store'
|
2024-03-07 10:09:56 +00:00
|
|
|
nim_waku_cont_vol: '/docker/{{ nim_waku_cont_name }}'
|
|
|
|
nim_waku_node_conf_path: '{{ nim_waku_cont_vol }}/conf'
|
2023-09-08 13:48:13 +00:00
|
|
|
nim_waku_log_level: 'debug'
|
|
|
|
nim_waku_protocols_enabled: ['relay', 'store']
|
|
|
|
nim_waku_disc_v5_enabled: true
|
|
|
|
nim_waku_dns4_domain_name: '{{ dns_entry }}'
|
2024-05-23 16:10:15 +00:00
|
|
|
nim_waku_node_key: '{{lookup("bitwarden", "fleets/shards/"+stage+"/nodekeys", field=hostname)}}'
|
2023-09-08 13:48:13 +00:00
|
|
|
|
|
|
|
# Topic configuration
|
2024-02-29 11:34:10 +00:00
|
|
|
nim_waku_cluster_id: 16
|
2023-09-08 13:48:13 +00:00
|
|
|
nim_waku_pubsub_topics:
|
2024-03-04 21:09:38 +00:00
|
|
|
- '/waku/2/rs/16/1'
|
2023-10-13 17:44:50 +00:00
|
|
|
- '/waku/2/rs/16/32'
|
2023-10-04 09:33:24 +00:00
|
|
|
- '/waku/2/rs/16/64'
|
2023-09-08 13:48:13 +00:00
|
|
|
- '/waku/2/rs/16/128'
|
|
|
|
- '/waku/2/rs/16/256'
|
|
|
|
nim_waku_protected_topics:
|
2024-03-04 21:09:38 +00:00
|
|
|
- '/waku/2/rs/16/1:0461747a1b31c242d5d116baec75d6c2add6335aead6092ab2fa7eeaacd8fc9af2905207ebff8eed1c52e7c67ffa31ec830448e6c91524acdde6073f7c488db7c0'
|
2023-09-08 13:48:13 +00:00
|
|
|
- '/waku/2/rs/16/128:045ced3b90fabf7673c5165f9cc3a038fd2cfeb96946538089c310b5eaa3a611094b27d8216d9ec8110bd0e0e9fa7a7b5a66e86a27954c9d88ebd41d0ab6cfbb91'
|
|
|
|
- '/waku/2/rs/16/256:049022b33f7583f34463f5b7622e5da29f99f993e6858a478465c68ee114ccf142204eff285ed922349c4b71b178a2e1a2154b99bcc2d8e91b3994626ffa9f1a6c'
|
|
|
|
|
|
|
|
# Ports
|
|
|
|
nim_waku_p2p_tcp_port: 30303
|
|
|
|
nim_waku_metrics_port: 8008
|
|
|
|
nim_waku_disc_v5_port: 9000
|
|
|
|
nim_waku_rpc_tcp_port: 8545
|
2023-12-14 09:06:00 +00:00
|
|
|
nim_waku_websock_port: 443
|
2023-09-08 13:48:13 +00:00
|
|
|
|
|
|
|
# Limits
|
2024-02-01 12:41:18 +00:00
|
|
|
nim_waku_max_msg_size: '1024KiB'
|
2023-09-08 13:48:13 +00:00
|
|
|
nim_waku_p2p_max_connections: 300
|
2024-01-24 14:25:34 +00:00
|
|
|
nim_waku_ip_colocation_limit: 100
|
2023-09-08 13:48:13 +00:00
|
|
|
|
|
|
|
# Store
|
2023-09-29 10:26:44 +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/shards/"+stage+"/db/nim-waku")}}'
|
|
|
|
nim_waku_store_message_db_url: 'postgres://{{ nim_waku_store_message_db_user}}:{{ nim_waku_store_message_db_pass}}@store-db-01.{{ ansible_domain }}.wg:5432/{{nim_waku_store_message_db_name}}'
|
2023-09-08 13:48:13 +00:00
|
|
|
nim_waku_store_message_retention_policy: 'time:2592000' # 30 days
|
|
|
|
|
|
|
|
# DNS Discovery
|
2023-09-21 11:01:05 +00:00
|
|
|
nim_waku_dns_disc_enabled: true
|
2023-09-28 15:01:36 +00:00
|
|
|
nim_waku_dns_disc_url_map:
|
2024-03-18 19:48:58 +00:00
|
|
|
test: 'enrtree://AMOJVZX4V6EXP7NTJPMAYJYST2QP6AJXYW76IU6VGJS7UVSNDYZG4@boot.test.shards.nodes.status.im'
|
|
|
|
staging: 'enrtree://AI4W5N5IFEUIHF5LESUAOSMV6TKWF2MB6GU2YK7PU4TYUGUNOCEPW@boot.staging.shards.nodes.status.im'
|
2023-09-28 15:01:36 +00:00
|
|
|
nim_waku_dns_disc_url: '{{ nim_waku_dns_disc_url_map[stage] }}'
|
2023-09-08 13:48:13 +00:00
|
|
|
|
2023-12-14 09:06:00 +00:00
|
|
|
# Websockets
|
|
|
|
nim_waku_websocket_enabled: true
|
|
|
|
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'
|
2023-09-08 13:48:13 +00:00
|
|
|
|
|
|
|
# Consul Service
|
2024-05-12 08:29:37 +00:00
|
|
|
nim_waku_consul_check_interval: '120s'
|
|
|
|
nim_waku_consul_check_timeout: '5s'
|
2023-09-08 13:48:13 +00:00
|
|
|
nim_waku_consul_success_before_passing: 5
|
2024-05-12 08:29:37 +00:00
|
|
|
nim_waku_consul_failures_before_warning: 10
|
|
|
|
nim_waku_consul_failures_before_critical: 40
|
2023-09-08 13:48:13 +00:00
|
|
|
|
2023-12-14 09:06:00 +00:00
|
|
|
# LetsEncrypt via Certbot
|
|
|
|
certbot_docker_enabled: true
|
|
|
|
certbot_admin_email: 'devops@status.im'
|
2024-03-07 10:09:56 +00:00
|
|
|
certbot_services_to_stop: ['nginx']
|
2024-01-08 12:35:03 +00:00
|
|
|
certbot_containers_to_stop: ['{{ nim_waku_cont_name }}']
|
2024-03-18 19:48:58 +00:00
|
|
|
certbot_certs: '{{ certbot_certs_map[stage] }}'
|
|
|
|
# FIXME: Remove once ENR records are updated without the domain.
|
|
|
|
certbot_certs_map:
|
|
|
|
test:
|
|
|
|
- domains:
|
|
|
|
- '{{ nim_waku_websocket_domain }}'
|
|
|
|
- '{{ nim_waku_websocket_domain | replace("status.im", "statusim.net") }}' # Legacy Domain
|
|
|
|
staging:
|
|
|
|
- domains:
|
|
|
|
- '{{ nim_waku_websocket_domain }}'
|
2023-12-14 09:06:00 +00:00
|
|
|
|
2023-09-08 13:48:13 +00:00
|
|
|
# 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:09:56 +00:00
|
|
|
- { port: '80', comment: 'Nginx and Certbot' }
|
2023-09-08 13:48:13 +00:00
|
|
|
- { port: '{{ nim_waku_p2p_tcp_port }}' }
|
|
|
|
- { port: '{{ nim_waku_disc_v5_port }}', protocol: 'udp' }
|
|
|
|
- { port: '{{ nim_waku_metrics_port }}', chain: 'VPN', ipset: 'metrics.hq' }
|
2023-12-14 09:06:00 +00:00
|
|
|
- { port: '{{ nim_waku_websock_port }}' }
|
2024-03-07 10:09:56 +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; }
|
|
|
|
}
|