Skip to content

Instantly share code, notes, and snippets.

@wgebis
Created July 8, 2019 13:47
Show Gist options
  • Save wgebis/24a53a802a64b9ac63f07ec7df165df4 to your computer and use it in GitHub Desktop.
Save wgebis/24a53a802a64b9ac63f07ec7df165df4 to your computer and use it in GitHub Desktop.
resource "cloudflare_zone" "my_domain_entry" {
zone = "example.com"
}
resource "cloudflare_zone_settings_override" "my_domain_entry_config" {
name = "${cloudflare_zone.my_domain_entry.zone}"
settings {
tls_1_3 = "on"
}
}
resource "cloudflare_record" "app_example_com_host" {
domain = "${cloudflare_zone.my_domain_entry.zone}"
type = "A"
name = "@"
value = "${digitalocean_droplet.my_droplet.ip_address}"
proxied = true
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment