Skip to content
Snippets Groups Projects
Commit 0b37fd02 authored by Ole Langbehn's avatar Ole Langbehn
Browse files

Merge remote-tracking branch 'origin/main' into production

parents 94639a92 7a9255b3
No related branches found
Tags release/1.39.0
No related merge requests found
......@@ -9,13 +9,14 @@
"automerge": true
},
{
"matchCategories": ["npm"],
"matchUpdateTypes": ["minor", "patch", "pin", "digest"],
"matchManagers": ["npm"],
"matchUpdateTypes": ["patch", "pin", "digest"],
"automerge": true
},
{
"matchDepTypes": ["devDependencies"],
"automerge": true
}
]
],
"platformAutomerge": false
}
......@@ -6,8 +6,3 @@ resource "google_dns_record_set" "holi_social_unified_api_domain_record_set" {
ttl = 300
rrdatas = [google_cloud_run_domain_mapping.holi_social_unified_api.status[0].resource_records[0].rrdata]
}
output "api_domain" {
value = trimsuffix(google_dns_record_set.holi_social_unified_api_domain_record_set.name, ".")
description = "Domain where the app resides"
}
......@@ -5,6 +5,9 @@ locals {
# the dns name can be at most 64 chars in total. The environment passed in via gitlab is max 24 chars (CI_ENVIRONMENT_SLUG).
dns_name = "${local.environment}.${data.terraform_remote_state.holi_unified_api_common_state.outputs.dns_unified_api_domain}"
api_domain = trimsuffix(google_dns_record_set.holi_social_unified_api_domain_record_set.name, ".")
api_endpoint_url = "https://${local.api_domain}/graphql"
okuna_domain = "https://${local.environment == "production" ? "production" : "staging"}.${data.terraform_remote_state.holi_okuna_common_state.outputs.dns_okuna_domain}"
okuna_url = "https://${local.environment == "production" ? "production" : "staging"}.${data.terraform_remote_state.holi_okuna_common_state.outputs.dns_okuna_domain}/graphql"
donations_api_url = "https://${local.environment == "production" ? "production" : "staging"}.${data.terraform_remote_state.holi_donations_api_common_state.outputs.dns_donations_api_domain}/graphql"
......@@ -47,3 +50,13 @@ output "notifications_api_url" {
output "translation_api_url" {
value = local.translation_api_url
}
output "api_domain" {
value = local.api_domain
description = "Domain under which the unified API runs"
}
output "api_endpoint_url" {
value = local.api_endpoint_url
description = "GraphQL API endpoint URL of the unified API"
}
\ No newline at end of file
This diff is collapsed.
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment