era: add era1 mainnet public hosting

This commit is contained in:
Anton Iakimov 2024-10-31 13:22:38 +01:00
parent 5f6ef71b22
commit 0a0c17160f
No known key found for this signature in database
5 changed files with 46 additions and 10 deletions

View File

@ -21,6 +21,7 @@ There are also archives of ERA files:
| Endpoint | Host |
|-----------------------------------|---------------------------------------|
| https://mainnet.era.nimbus.team/ | `erigon-01.ih-eu-mda1.nimbus.mainnet` |
| https://mainnet.era1.nimbus.team/ | `nel-01.ih-eu-mda1.nimbus.mainnet` |
| https://sepolia.era.nimbus.team/ | `linux-01.ih-eu-mda1.nimbus.sepolia` |
| https://sepolia.era1.nimbus.team/ | `linux-01.ih-eu-mda1.nimbus.sepolia` |
| https://holesky.era.nimbus.team/ | `geth-01.ih-eu-mda1.nimbus.holesky` |

View File

@ -9,10 +9,11 @@
- local_action: command ./roles.py --check
changed_when: false
- name: Configure ERA files hosting
- name: Configure ERA & ERA1 files hosting
become: true
hosts:
- erigon-01.ih-eu-mda1.nimbus.mainnet
- nel-01.ih-eu-mda1.nimbus.mainnet
- linux-01.ih-eu-mda1.nimbus.sepolia
- geth-01.ih-eu-mda1.nimbus.holesky
roles:

View File

@ -0,0 +1,25 @@
---
# Era1 files hosting
era1_files_domain: 'mainnet.era1.nimbus.team'
era1_files_path: '/docker/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:
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;
}

18
era.tf
View File

@ -23,3 +23,21 @@ resource "cloudflare_record" "era_holesky" {
type = "A"
proxied = true
}
/* ERA1 Files hosting */
resource "cloudflare_record" "era1_sepolia" {
zone_id = local.zones["nimbus.team"]
name = "sepolia.era1"
value = module.nimbus_nodes_sepolia_innova.public_ips[0]
type = "A"
proxied = true
}
resource "cloudflare_record" "era1_mainnet" {
zone_id = local.zones["nimbus.team"]
name = "mainnet.era1"
value = module.nimbus_nodes_mainnet_innova_nel.public_ips[0]
type = "A"
proxied = true
}

View File

@ -21,12 +21,3 @@ resource "cloudflare_record" "unstable_sepolia_beacon_api" {
type = "A"
proxied = false
}
/* ERA1 Files hosting */
resource "cloudflare_record" "era1_sepolia" {
zone_id = local.zones["nimbus.team"]
name = "sepolia.era1"
value = module.nimbus_nodes_sepolia_innova.public_ips[0]
type = "A"
proxied = true
}