mirror of
https://github.com/status-im/infra-nimbus.git
synced 2025-01-31 07:55:42 +00:00
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:
parent
1cea695b37
commit
427b736fb2
@ -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
|
||||
|
@ -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;
|
||||
}
|
||||
|
@ -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"]
|
||||
|
@ -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"
|
||||
|
||||
|
Loading…
x
Reference in New Issue
Block a user