fmt
This commit is contained in:
20
main.tf
20
main.tf
@@ -99,26 +99,26 @@ data "cloudflare_zones" "domain" {
|
||||
# DNS setup
|
||||
resource "cloudflare_record" "site_cname" {
|
||||
zone_id = data.cloudflare_zones.domain.zones[0].id
|
||||
name = var.site_domain
|
||||
value = aws_s3_bucket_website_configuration.site.website_endpoint
|
||||
type = "CNAME"
|
||||
ttl = 1
|
||||
name = var.site_domain
|
||||
value = aws_s3_bucket_website_configuration.site.website_endpoint
|
||||
type = "CNAME"
|
||||
ttl = 1
|
||||
proxied = true
|
||||
}
|
||||
|
||||
resource "cloudflare_record" "www" {
|
||||
zone_id = data.cloudflare_zones.domain.zones[0].id
|
||||
name = "www"
|
||||
value = var.site_domain
|
||||
type = "CNAME"
|
||||
ttl = 1
|
||||
name = "www"
|
||||
value = var.site_domain
|
||||
type = "CNAME"
|
||||
ttl = 1
|
||||
proxied = true
|
||||
}
|
||||
|
||||
resource "cloudflare_page_rule" "https" {
|
||||
zone_id = data.cloudflare_zones.domain.zones[0].id
|
||||
target = "*.${var.site_domain}/*"
|
||||
target = "*.${var.site_domain}/*"
|
||||
actions {
|
||||
always_use_https = true
|
||||
always_use_https = true
|
||||
}
|
||||
}
|
||||
|
||||
@@ -1,5 +1,5 @@
|
||||
variable "aws_region" {
|
||||
type = string
|
||||
type = string
|
||||
description = "The AWS region of this site"
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user