63 lines
1.8 KiB
YAML
63 lines
1.8 KiB
YAML
---
|
|
# Community test REST API endpoint.
|
|
beacon_node_rest_address: '0.0.0.0'
|
|
|
|
# Extract dynamically port form layout.
|
|
test_api_beacon_node_rest_index: |-
|
|
{{ nodes_layout[inventory_hostname]
|
|
| 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 + 11 }}
|
|
test_api_beacon_node_branch: |-
|
|
{{ nodes_layout[inventory_hostname][test_api_beacon_node_rest_index|int].branch }}
|
|
|
|
# WARNING: This will change if number of nodes changes.
|
|
redirect_ports:
|
|
public-beacon-api:
|
|
src: 80
|
|
dst: '{{ test_api_beacon_node_rest_port }}'
|
|
comment: 'Public Beacon API ({{ test_api_beacon_node_branch }}-0{{ test_api_beacon_node_rest_index|int - 1 }})'
|
|
|
|
# Era files hosting
|
|
era_files_domain: 'sepolia.era.nimbus.team'
|
|
era_files_path: '/data/era'
|
|
|
|
# Era1 files hosting
|
|
era1_files_domain: 'sepolia.era1.nimbus.team'
|
|
era1_files_path: '/data/era1'
|
|
|
|
# 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 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;
|
|
}
|
|
|
|
era1_files:
|
|
- listen 443 ssl
|
|
|
|
- server_name {{ era1_files_domain }}
|
|
|
|
- ssl_certificate /certs/nimbus.team/origin.crt
|
|
- ssl_certificate_key /certs/nimbus.team/origin.key
|
|
|
|
- location / {
|
|
root {{ era1_files_path }};
|
|
autoindex on;
|
|
autoindex_format html;
|
|
}
|