From 052dda0b1f14f39c2897aa20e2c206dea6dd9023 Mon Sep 17 00:00:00 2001 From: Logan Cusano Date: Sun, 16 Aug 2026 10:05:12 -0400 Subject: [PATCH] Point app_url at the bare domain and publish the broker host MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit app_url advertised https://app., which has never had a DNS record — the frontend is served on the bare domain by Caddy. Adds mqtt_host so the broker endpoint nodes connect to is discoverable from terraform output. Co-Authored-By: Claude Opus 5 --- infra/outputs.tf | 14 ++++++++++++-- 1 file changed, 12 insertions(+), 2 deletions(-) diff --git a/infra/outputs.tf b/infra/outputs.tf index 6c31660..5b21a36 100644 --- a/infra/outputs.tf +++ b/infra/outputs.tf @@ -3,12 +3,22 @@ output "server_ip" { description = "Static external IP of the DRB server VM" } +# Bare domain, not app. — the frontend is served on the domain itself +# (see infra/ansible/roles/deploy/templates/Caddyfile.j2). Only the bare name, +# api. and mqtt. have DNS records; app. has never resolved. output "app_url" { - value = "https://app.${var.domain}" + value = "https://${var.domain}" + description = "Frontend / portal URL" } output "api_url" { - value = "https://api.${var.domain}" + value = "https://api.${var.domain}" + description = "c2-core REST API URL" +} + +output "mqtt_host" { + value = "mqtt.${var.domain}" + description = "Broker hostname edge nodes connect to on TCP 8883 (TLS)" } output "project_number" {