-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathcf-dns.tf
More file actions
53 lines (48 loc) · 1.17 KB
/
cf-dns.tf
File metadata and controls
53 lines (48 loc) · 1.17 KB
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
resource "cloudflare_dns_record" "root" {
zone_id = local.zone_id
type = "CNAME"
name = "@"
content = "makeitwork.cloud.s3-website.us-west-2.amazonaws.com"
proxied = true
ttl = 1
}
resource "cloudflare_dns_record" "www" {
zone_id = local.zone_id
type = "CNAME"
name = "www"
content = "makeitwork.cloud.s3-website.us-west-2.amazonaws.com"
proxied = true
ttl = 1
}
resource "cloudflare_dns_record" "mx_primary" {
zone_id = local.zone_id
type = "MX"
name = "@"
content = "mx1.privateemail.com"
priority = 10
ttl = 1
}
resource "cloudflare_dns_record" "mx_secondary" {
zone_id = local.zone_id
type = "MX"
name = "@"
content = "mx2.privateemail.com"
priority = 20
ttl = 1
}
resource "cloudflare_dns_record" "spf" {
zone_id = local.zone_id
type = "TXT"
name = "@"
content = "v=spf1 include:spf.privateemail.com ~all"
ttl = 1
}
# Onion hidden service static site
resource "cloudflare_dns_record" "onion" {
zone_id = local.zone_id
type = "CNAME"
name = "onion"
content = "onion.makeitwork.cloud.s3-website-us-west-2.amazonaws.com"
proxied = true
ttl = 1
}