2023-12-01 10:19:51 +00:00
|
|
|
---
|
2024-07-31 08:05:23 +00:00
|
|
|
# Community test REST API endpoint.
|
2023-12-01 10:19:51 +00:00
|
|
|
beacon_node_rest_address: '0.0.0.0'
|
|
|
|
|
2024-06-18 10:02:49 +00:00
|
|
|
# Extract dynamically port form layout.
|
|
|
|
test_api_beacon_node_rest_index: |-
|
2024-09-16 06:10:36 +00:00
|
|
|
{{ nodes_layout[inventory_hostname]
|
2024-06-18 10:02:49 +00:00
|
|
|
| ansible.utils.index_of(test='eq', key='public_api', value=True) }}
|
|
|
|
test_api_beacon_node_rest_port: |-
|
|
|
|
{{ beacon_node_rest_port_base + test_api_beacon_node_rest_index|int + 1 }}
|
|
|
|
test_api_beacon_node_branch: |-
|
2024-09-16 06:10:36 +00:00
|
|
|
{{ nodes_layout[inventory_hostname][test_api_beacon_node_rest_index|int].branch }}
|
2024-06-18 10:02:49 +00:00
|
|
|
|
2023-12-01 10:19:51 +00:00
|
|
|
# WARNING: This will change if number of nodes changes.
|
|
|
|
redirect_ports:
|
2024-10-01 11:39:43 +00:00
|
|
|
public-beacon-api:
|
|
|
|
src: 80
|
2024-06-18 10:02:49 +00:00
|
|
|
dst: '{{ test_api_beacon_node_rest_port }}'
|
|
|
|
comment: 'Test Beacon API ({{ test_api_beacon_node_branch }})'
|
2024-05-22 15:53:39 +00:00
|
|
|
|
|
|
|
# Era files hosting
|
|
|
|
era_files_domain: 'holesky.era.nimbus.team'
|
|
|
|
era_files_path: '/data/era'
|
|
|
|
|
|
|
|
# CloudFlare Origin certificates
|
|
|
|
origin_certs:
|
|
|
|
- domain: 'nimbus.team'
|
2024-11-04 07:45:14 +00:00
|
|
|
crt: '{{lookup("vault", "certs/cloudflare/nimbus.team", field="origin.crt", stage="all", env="all")}}'
|
|
|
|
key: '{{lookup("vault", "certs/cloudflare/nimbus.team", field="origin.key", stage="all", env="all")}}'
|
2024-05-22 15:53:39 +00:00
|
|
|
|
|
|
|
nginx_sites:
|
|
|
|
era_files:
|
|
|
|
- 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;
|
|
|
|
}
|