host ERA files under prater.era.nimbus.team domain

https://github.com/status-im/infra-nimbus/issues/126

Signed-off-by: Jakub Sokołowski <jakub@status.im>
This commit is contained in:
Jakub Sokołowski 2022-11-17 11:24:00 +01:00
parent 1cea695b37
commit 427b736fb2
No known key found for this signature in database
GPG Key ID: 09AA5403E54D9931
4 changed files with 37 additions and 1 deletions

View File

@ -13,6 +13,7 @@
become: true
hosts:
- metal-03.he-eu-hel1.nimbus.mainnet
- linux-01.he-eu-hel1.nimbus.prater
roles:
- role: origin-certs
tags: origin-certs

View File

@ -6,3 +6,29 @@ beacon_node_rest_address: '0.0.0.0'
redirect_ports:
# beacon-node-prater-unstable
- { src: 80, dst: 9302, comment: 'Test Beacon API (80->9302/tcp)' }
# Era files hosting
era_files_domain: 'prater.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;
}

View File

@ -40,7 +40,7 @@ resource "cloudflare_record" "testing_mainnet_beacon_api" {
type = "A"
proxied = false
}
/* ERA Files hosting */
resource "cloudflare_record" "era_mainnet" {
zone_id = local.zones["nimbus.team"]

View File

@ -147,6 +147,15 @@ resource "cloudflare_record" "testing_prater_beacon_api" {
proxied = false
}
/* ERA Files hosting */
resource "cloudflare_record" "era_prater" {
zone_id = local.zones["nimbus.team"]
name = "prater.era"
value = module.nimbus_nodes_prater_hetzner.public_ips[0]
type = "A"
proxied = true
}
module "nimbus_nodes_prater_macos" {
source = "github.com/status-im/infra-tf-dummy-module"