mirror of
https://github.com/status-im/infra-nimbus.git
synced 2025-01-19 02:01:17 +00:00
sepolia: Exposing ERA files
Signed-off-by: Alexis Pentori <alexis@status.im>
This commit is contained in:
parent
5e12025aa6
commit
458652e7f8
@ -22,6 +22,7 @@ There are also archives of ERA files:
|
|||||||
|----------------------------------|--------------------------------------|
|
|----------------------------------|--------------------------------------|
|
||||||
| https://mainnet.era.nimbus.team/ | `linux-03.ih-eu-mda1.nimbus.mainnet` |
|
| https://mainnet.era.nimbus.team/ | `linux-03.ih-eu-mda1.nimbus.mainnet` |
|
||||||
| https://prater.era.nimbus.team/ | `linux-01.ih-eu-mda1.nimbus.prater` |
|
| https://prater.era.nimbus.team/ | `linux-01.ih-eu-mda1.nimbus.prater` |
|
||||||
|
| https://sepolia.era.nimbus.team/ | `linux-01.ih-eu-mda1.sepolia.prater` |
|
||||||
|
|
||||||
# Dashboards
|
# Dashboards
|
||||||
|
|
||||||
|
@ -14,6 +14,7 @@
|
|||||||
hosts:
|
hosts:
|
||||||
- linux-03.ih-eu-mda1.nimbus.mainnet
|
- linux-03.ih-eu-mda1.nimbus.mainnet
|
||||||
- linux-01.ih-eu-mda1.nimbus.prater
|
- linux-01.ih-eu-mda1.nimbus.prater
|
||||||
|
- linux-01.ih-eu-mda1.nimbus.sepolia
|
||||||
vars:
|
vars:
|
||||||
open_ports_default_comment: 'Nginx'
|
open_ports_default_comment: 'Nginx'
|
||||||
open_ports_default_chain: 'SERVICES'
|
open_ports_default_chain: 'SERVICES'
|
||||||
|
@ -26,6 +26,7 @@ geth_websocket_port: '{{ 9546 + idx|int + 11 }}'
|
|||||||
# Beacon Nodes
|
# Beacon Nodes
|
||||||
beacon_node_service_name: 'beacon-node-{{ beacon_node_network }}-{{ beacon_node_repo_branch }}-{{ "%02d"|format(idx|int+1) }}'
|
beacon_node_service_name: 'beacon-node-{{ beacon_node_network }}-{{ beacon_node_repo_branch }}-{{ "%02d"|format(idx|int+1) }}'
|
||||||
beacon_node_network: 'sepolia'
|
beacon_node_network: 'sepolia'
|
||||||
|
beacon_node_era_dir_path: '{{ nimbus_era_files_timer_path }}'
|
||||||
beacon_node_repo_branch: '{{ node.get("branch", "unstable") }}'
|
beacon_node_repo_branch: '{{ node.get("branch", "unstable") }}'
|
||||||
beacon_node_build_nim_flags: '-d:noSignalHandler {{ node.get("nim_flags", "") }}'
|
beacon_node_build_nim_flags: '-d:noSignalHandler {{ node.get("nim_flags", "") }}'
|
||||||
beacon_node_extra_flags: '{{ node.extra_flags if node.extra_flags is defined else [] }}'
|
beacon_node_extra_flags: '{{ node.extra_flags if node.extra_flags is defined else [] }}'
|
||||||
@ -76,6 +77,13 @@ validator_client_dist_validators_enabled: '{{ node.start is defined and node.end
|
|||||||
validator_client_dist_validators_start: '{{ (not node.validator_client) | ternary(0, node.start) | mandatory }}'
|
validator_client_dist_validators_start: '{{ (not node.validator_client) | ternary(0, node.start) | mandatory }}'
|
||||||
validator_client_dist_validators_end: '{{ (not node.validator_client) | ternary(0, node.end) | mandatory }}'
|
validator_client_dist_validators_end: '{{ (not node.validator_client) | ternary(0, node.end) | mandatory }}'
|
||||||
|
|
||||||
|
# ERA files geneartion.
|
||||||
|
nimbus_era_files_timer_enabled: '{{ (nodes_layout[hostname]|length) > 1 }}'
|
||||||
|
nimbus_era_files_timer_path: '/data/era'
|
||||||
|
nimbus_era_files_network: '{{ beacon_node_network }}'
|
||||||
|
nimbus_era_files_db_path: '/data/beacon-node-{{ beacon_node_network }}-unstable-01/data/db'
|
||||||
|
nimbus_era_files_nclidb_path: '/data/beacon-node-{{ beacon_node_network }}-unstable-01/repo/build/ncli_db'
|
||||||
|
|
||||||
# Open Ports
|
# Open Ports
|
||||||
open_ports_default_chain: 'VPN'
|
open_ports_default_chain: 'VPN'
|
||||||
open_ports_list:
|
open_ports_list:
|
||||||
|
@ -6,3 +6,29 @@ beacon_node_rest_address: '0.0.0.0'
|
|||||||
redirect_ports:
|
redirect_ports:
|
||||||
# beacon-node-sepolia-unstable-01
|
# beacon-node-sepolia-unstable-01
|
||||||
- { src: 80, dst: 9311, comment: 'Test Beacon API (80->9311/tcp)' }
|
- { src: 80, dst: 9311, comment: 'Test Beacon API (80->9311/tcp)' }
|
||||||
|
|
||||||
|
# Era files hosting
|
||||||
|
era_files_domain: 'sepolia.era.nimbus.team'
|
||||||
|
era_files_path: '/data/era'
|
||||||
|
|
||||||
|
# CloudFlare Origin certificates
|
||||||
|
origin_certs:
|
||||||
|
- domain: 'nimbus.team'
|
||||||
|
crt: '{{lookup("bitwarden", "CloudFlare/nimbus.team", file="origin.crt")}}'
|
||||||
|
key: '{{lookup("bitwarden", "CloudFlare/nimbus.team", file="origin.key")}}'
|
||||||
|
|
||||||
|
nginx_sites:
|
||||||
|
era_files:
|
||||||
|
- listen 80 default_server
|
||||||
|
- listen 443 ssl
|
||||||
|
|
||||||
|
- server_name {{ era_files_domain }}
|
||||||
|
|
||||||
|
- ssl_certificate /certs/nimbus.team/origin.crt
|
||||||
|
- ssl_certificate_key /certs/nimbus.team/origin.key
|
||||||
|
|
||||||
|
- location / {
|
||||||
|
root {{ era_files_path }};
|
||||||
|
autoindex on;
|
||||||
|
autoindex_format html;
|
||||||
|
}
|
||||||
|
@ -15,9 +15,10 @@
|
|||||||
hosts:
|
hosts:
|
||||||
- nimbus-sepolia-linux
|
- nimbus-sepolia-linux
|
||||||
roles:
|
roles:
|
||||||
- { role: open-ports, tags: [ open-ports ] }
|
- { role: open-ports, tags: [ open-ports ] }
|
||||||
- { role: smart-metrics, tags: [ smart-metrics ] }
|
- { role: smart-metrics, tags: [ smart-metrics ] }
|
||||||
- { role: redirect-ports, tags: [ redirect-ports ] }
|
- { role: redirect-ports, tags: [ redirect-ports ] }
|
||||||
|
- { role: nimbus-era-files, tags: [ nimbus-era-files ] }
|
||||||
tasks:
|
tasks:
|
||||||
- include_role: name=infra-role-geth
|
- include_role: name=infra-role-geth
|
||||||
with_items: '{{ nodes_layout[hostname] }}'
|
with_items: '{{ nodes_layout[hostname] }}'
|
||||||
|
@ -22,3 +22,12 @@ resource "cloudflare_record" "unstable_sepolia_beacon_api" {
|
|||||||
type = "A"
|
type = "A"
|
||||||
proxied = false
|
proxied = false
|
||||||
}
|
}
|
||||||
|
|
||||||
|
/* ERA Files hosting */
|
||||||
|
resource "cloudflare_record" "era_sepolia" {
|
||||||
|
zone_id = local.zones["nimbus.team"]
|
||||||
|
name = "sepolia.era"
|
||||||
|
value = module.nimbus_nodes_sepolia_innova.public_ips[0]
|
||||||
|
type = "A"
|
||||||
|
proxied = true
|
||||||
|
}
|
||||||
|
Loading…
x
Reference in New Issue
Block a user