This commit is contained in:
2
main.tf
2
main.tf
@@ -26,7 +26,7 @@ locals {
|
|||||||
ingress_rules = concat(
|
ingress_rules = concat(
|
||||||
[
|
[
|
||||||
for app_name, app_config in var.applications : {
|
for app_name, app_config in var.applications : {
|
||||||
hostname = "${app_config.subdomain}.${var.cloudflare_zone_id}"
|
hostname = "${app_config.subdomain}.${local.cloudflare_zone_id}"
|
||||||
service = app_config.origin_url
|
service = app_config.origin_url
|
||||||
origin_request = {
|
origin_request = {
|
||||||
no_tls_verify = app_config.no_tls_verify
|
no_tls_verify = app_config.no_tls_verify
|
||||||
|
|||||||
@@ -26,7 +26,7 @@ output "applications_urls" {
|
|||||||
description = "URLs publiques de toutes les applications"
|
description = "URLs publiques de toutes les applications"
|
||||||
value = {
|
value = {
|
||||||
for app_name, app_config in var.applications :
|
for app_name, app_config in var.applications :
|
||||||
app_name => "https://${app_config.subdomain}.${var.cloudflare_zone_id}"
|
app_name => "https://${app_config.subdomain}.${local.cloudflare_zone_id}"
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
@@ -43,7 +43,7 @@ output "applications_details" {
|
|||||||
value = {
|
value = {
|
||||||
for app_name, app_config in var.applications :
|
for app_name, app_config in var.applications :
|
||||||
app_name => {
|
app_name => {
|
||||||
public_url = "https://${app_config.subdomain}.${var.cloudflare_zone}"
|
public_url = "https://${app_config.subdomain}.${local.cloudflare_zone_id}"
|
||||||
origin_url = app_config.origin_url
|
origin_url = app_config.origin_url
|
||||||
access_enabled = app_config.access_enabled
|
access_enabled = app_config.access_enabled
|
||||||
dns_record_id = cloudflare_dns_record.applications[app_name].id
|
dns_record_id = cloudflare_dns_record.applications[app_name].id
|
||||||
|
|||||||
Reference in New Issue
Block a user