Skip to content

Commit

Permalink
Add cloudflare configuration
Browse files Browse the repository at this point in the history
  • Loading branch information
mircea-pavel-anton committed Dec 28, 2024
1 parent f5b4eb5 commit 09ba9fd
Show file tree
Hide file tree
Showing 2 changed files with 28 additions and 0 deletions.
8 changes: 8 additions & 0 deletions terraform/migadu/provider.tf
Original file line number Diff line number Diff line change
@@ -1,12 +1,20 @@
terraform {
required_providers {
cloudflare = {
source = "cloudflare/cloudflare"
version = "4.49.1"
}
migadu = {
source = "metio/migadu"
version = "2024.12.26"
}
}
}

provider "cloudflare" {
api_token = var.cloudflare_api_token
}

provider "migadu" {
username = var.migadu_api_email
token = var.migadu_api_token
Expand Down
20 changes: 20 additions & 0 deletions terraform/migadu/variables.tf
Original file line number Diff line number Diff line change
@@ -1,6 +1,11 @@
# =================================================================================================
# Provider Configuration
# =================================================================================================
variable "cloudflare_api_token" {
type = string
sensitive = true
description = "API Token to authenticate against CloudFlare"
}
variable "migadu_api_token" {
type = string
sensitive = true
Expand All @@ -11,3 +16,18 @@ variable "migadu_api_email" {
sensitive = true
description = "Email to authenticate against Migadu API"
}


# =================================================================================================
# Domain Verifications
# =================================================================================================
variable "migadu_verification_mirceanton" {
type = string
sensitive = true
description = "Content for the TXT record needed for Migadu verification."
}
variable "migadu_verification_mirceaanton" {
type = string
sensitive = true
description = "Content for the TXT record needed for Migadu verification."
}

0 comments on commit 09ba9fd

Please sign in to comment.