app_url advertised https://app.<domain>, 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 <noreply@anthropic.com>
33 lines
1.0 KiB
Terraform
33 lines
1.0 KiB
Terraform
output "server_ip" {
|
|
value = google_compute_address.drb.address
|
|
description = "Static external IP of the DRB server VM"
|
|
}
|
|
|
|
# Bare domain, not app.<domain> — 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://${var.domain}"
|
|
description = "Frontend / portal URL"
|
|
}
|
|
|
|
output "api_url" {
|
|
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" {
|
|
value = data.google_project.current.number
|
|
description = "GCP project number (useful for service account references)"
|
|
}
|
|
|
|
output "ssh_command" {
|
|
value = "ssh ${var.ssh_user}@${google_compute_address.drb.address}"
|
|
description = "SSH command to reach the server (should rarely be needed)"
|
|
}
|