Skip to content

Commit

Permalink
Add wildcard and gcpping to cert (#46)
Browse files Browse the repository at this point in the history
  • Loading branch information
enocom authored Aug 20, 2021
1 parent d294e5e commit 6debb71
Showing 1 changed file with 10 additions and 1 deletion.
11 changes: 10 additions & 1 deletion gcping.tf
Original file line number Diff line number Diff line change
Expand Up @@ -44,6 +44,12 @@ variable "domain" {
default = "gcping.com"
}

variable "domain_alias" {
type = string
default = "gcpping.com" // two p's
}


data "google_cloud_run_locations" "available" {
}

Expand Down Expand Up @@ -158,8 +164,11 @@ resource "google_compute_managed_ssl_certificate" "global" {
name = "global"
managed {
domains = [
"global.${var.domain}.",
"global.${var.domain}.", // TODO: remove this once the new cert is created
"*.${var.domain}.",
"${var.domain}.",
"*.${var.domain_alias}.",
"${var.domain_alias}.",
]
}
}
Expand Down

0 comments on commit 6debb71

Please sign in to comment.