feat: add caddy proxy
This commit is contained in:
@@ -30,3 +30,8 @@ output "cloudflare_api_token" {
|
||||
value = data.dotenv_sensitive.cloudflare_credentials.entries.CLOUDFLARE_API_TOKEN
|
||||
sensitive = true
|
||||
}
|
||||
|
||||
output "external_ip" {
|
||||
description = "External IP address for the homelab"
|
||||
value = data.dotenv.cloudflare_config.entries.EXTERNAL_IP
|
||||
}
|
||||
|
||||
15
modules/00-globals/tls/main.tf
Normal file
15
modules/00-globals/tls/main.tf
Normal file
@@ -0,0 +1,15 @@
|
||||
terraform {
|
||||
required_providers {
|
||||
dotenv = {
|
||||
source = "germanbrew/dotenv"
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
data "dotenv" "system_config" {}
|
||||
|
||||
// Outputs
|
||||
output "tls_email" {
|
||||
description = "TLS email"
|
||||
value = data.dotenv.system_config.entries.TLS_EMAIL
|
||||
}
|
||||
Reference in New Issue
Block a user