Skip to content

Commit

Permalink
chore(tls): remove unneeded acme registration
Browse files Browse the repository at this point in the history
  • Loading branch information
NathanFlurry committed Jun 26, 2024
1 parent 4ac04f3 commit 1fa4929
Showing 1 changed file with 0 additions and 46 deletions.
46 changes: 0 additions & 46 deletions infra/tf/tls/acme.tf
Original file line number Diff line number Diff line change
Expand Up @@ -11,49 +11,3 @@ resource "acme_registration" "main" {
email_address = "letsencrypt@rivet.gg"
}

# MARK: Certificates
resource "acme_certificate" "rivet_gg" {
account_key_pem = acme_registration.main.account_key_pem
common_name = var.domain_main
subject_alternative_names = flatten([
"*.${var.domain_main}",
])

recursive_nameservers = ["1.1.1.1:53", "1.0.0.1:53"]

# LetsEncrypt issues for 90 days, issue a new cert at 75 days
min_days_remaining = 75

# This certificate may not have been deployed yet
revoke_certificate_on_destroy = false

dns_challenge {
provider = "cloudflare"

config = {
CF_DNS_API_TOKEN = module.secrets.values["cloudflare/terraform/auth_token"]
}
}
}

resource "acme_certificate" "rivet_game" {
account_key_pem = acme_registration.main.account_key_pem
common_name = var.domain_cdn
subject_alternative_names = ["*.${var.domain_cdn}"]

recursive_nameservers = ["1.1.1.1:53", "1.0.0.1:53"]

# LetsEncrypt issues for 90 days, issue a new cert at 75 days
min_days_remaining = 75

# This certificate may not have been deployed yet
revoke_certificate_on_destroy = false

dns_challenge {
provider = "cloudflare"

config = {
CF_DNS_API_TOKEN = module.secrets.values["cloudflare/terraform/auth_token"]
}
}
}

0 comments on commit 1fa4929

Please sign in to comment.