mirror of
https://github.com/roleypoly/roleypoly.git
synced 2025-06-16 09:39:09 +00:00
add cf origin certs, swap LB to HTTPS
This commit is contained in:
parent
961989197c
commit
18583f145a
6 changed files with 97 additions and 26 deletions
|
@ -25,6 +25,11 @@ terraform {
|
|||
version = ">=3.0.0"
|
||||
source = "hashicorp/null"
|
||||
}
|
||||
|
||||
tls = {
|
||||
version = ">=3.0.0"
|
||||
source = "hashicorp/tls"
|
||||
}
|
||||
}
|
||||
|
||||
backend "gcs" {
|
||||
|
@ -37,6 +42,11 @@ variable "cloudflare_api_token" {
|
|||
sensitive = true
|
||||
}
|
||||
|
||||
variable "cloudflare_origin_ca_key" {
|
||||
type = string
|
||||
sensitive = true
|
||||
}
|
||||
|
||||
variable "cloudflare_account_id" {
|
||||
type = string
|
||||
sensitive = true
|
||||
|
@ -48,8 +58,9 @@ variable "cloudflare_zone_id" {
|
|||
}
|
||||
|
||||
provider "cloudflare" {
|
||||
api_token = var.cloudflare_api_token
|
||||
account_id = var.cloudflare_account_id
|
||||
api_token = var.cloudflare_api_token
|
||||
account_id = var.cloudflare_account_id
|
||||
api_user_service_key = var.cloudflare_origin_ca_key
|
||||
}
|
||||
|
||||
variable "gcp_project" {
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue