This repository has been archived by the owner on Dec 9, 2022. It is now read-only.
-
Notifications
You must be signed in to change notification settings - Fork 2
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Signed-off-by: Jakub Sokołowski <[email protected]>
- Loading branch information
Showing
3 changed files
with
64 additions
and
1 deletion.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,44 @@ | ||
--- | ||
nim_waku_cont_tag: 'deploy-v2-prod' | ||
nim_waku_cont_name: 'nim-waku' | ||
|
||
# Protocols | ||
nim_waku_protocols_enabled: ['relay', 'filter', 'lightpush'] | ||
|
||
# Ports | ||
nim_waku_p2p_tcp_port: 30303 | ||
nim_waku_p2p_udp_port: 30303 | ||
nim_waku_metrics_port: 8008 | ||
nim_waku_websock_port: 443 | ||
nim_waku_rpc_tcp_port: 8545 | ||
nim_waku_rpc_tcp_addr: 0.0.0.0 | ||
|
||
# Limits | ||
nim_waku_p2p_max_connections: 150 | ||
nim_waku_store_capacity: 10000 | ||
|
||
# Enable websockets in Waku | ||
nim_waku_websocket_enabled: true | ||
nim_waku_websocket_secure_enabled: true | ||
nim_waku_websocket_cont_port: 8000 | ||
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' | ||
|
||
# LetsEncrypt via Certbot | ||
certbot_docker_enabled: true | ||
certbot_admin_email: '[email protected]' | ||
certbot_certs: | ||
- domains: [ '{{ nim_waku_websocket_domain }}' ] | ||
|
||
# Open LibP2P Ports | ||
open_ports_default_comment: '{{ nim_waku_cont_name }}' | ||
open_ports_default_protocol: 'tcp' | ||
open_ports_default_chain: 'SERVICES' | ||
open_ports_list: | ||
- { port: '{{ nim_waku_p2p_tcp_port }}' } | ||
- { port: '{{ nim_waku_p2p_udp_port }}', protocol: 'udp' } | ||
- { port: '{{ nim_waku_websock_port }}' } | ||
- { port: '{{ nim_waku_metrics_port }}', chain: 'VPN', ipset: 'metrics.hq' } | ||
- { port: '{{ nim_waku_rpc_tcp_port }}', chain: 'VPN', ipset: '{{ env }}.{{ stage }}' } |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,19 @@ | ||
--- | ||
- name: Verify Ansible versions | ||
hosts: all | ||
tags: always | ||
become: false | ||
run_once: true | ||
gather_facts: false | ||
tasks: | ||
- local_action: command ./versioncheck.py | ||
changed_when: false | ||
|
||
- name: Configure Waku Nodes | ||
hosts: | ||
- waku.connect | ||
roles: | ||
- { role: open-ports, tags: open-ports } | ||
- { role: swap-file, tags: swap-file } | ||
- { role: certbot, tags: certbot } | ||
- { role: nim-waku, tags: nim-waku } |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -21,7 +21,7 @@ | |
|
||
- name: consul-service | ||
src: [email protected]:status-im/infra-role-consul-service.git | ||
version: 61a248a697d37c98b575be942bb6e86deb512380 | ||
version: ac9796d029298699abdd826d5775ceab3da55021 | ||
scm: git | ||
|
||
- name: certbot | ||
|