terraform: fix domains

This commit is contained in:
Anton Iakimov 2024-03-15 14:35:54 +01:00
parent 85f55e5801
commit 34abc7a012
No known key found for this signature in database
GPG Key ID: DEA1FE58DD8BF7FA
5 changed files with 3 additions and 15 deletions

View File

@ -75,7 +75,9 @@ certbot_admin_email: 'devops@status.im'
certbot_services_to_stop: ['nginx']
certbot_containers_to_stop: ['{{ nim_waku_cont_name }}']
certbot_certs:
- domains: [ '{{ nim_waku_websocket_domain }}' ]
- domains:
- '{{ nim_waku_websocket_domain }}'
- '{{ nim_waku_websocket_domain | replace("status.im", "statusim.net") }}' # Legacy Domain
# Connection limits
conn_limit_comment: 'WebSocket conn limit'

View File

@ -6,8 +6,6 @@ module "node" {
group = "node"
env = "waku"
stage = terraform.workspace
domain = var.domain
cf_zone_id = var.cf_zone_id
/* scaling */
host_count = local.ws["hosts_count"]

View File

@ -6,8 +6,6 @@ module "node-db" {
group = "node-db"
env = "waku"
stage = terraform.workspace
domain = var.domain
cf_zone_id = var.cf_zone_id
/* scaling */
host_count = local.ws["hosts_count"]

View File

@ -3,9 +3,3 @@ variable "domain" {
type = string
default = "status.im"
}
variable "cf_zone_id" {
description = "ID of CloudFlare zone for host record."
type = string
default = "fd48f427e99bbe1b52105351260690d1" /* status.im */
}

View File

@ -24,14 +24,10 @@ locals {
# Inherits defaults.
test = {
/* Settings specific to the test fleet/workspace. */
cf_zone_id = "14660d10344c9898521c4ba49789f563"
domain = "statusim.net"
}
sandbox = {
/* Settings specific to the test fleet/workspace. */
cf_zone_id = "fd48f427e99bbe1b52105351260690d1"
domain = "status.im"
}
}
}