# ──────────────────────────────────────────────────────────────
# Quark's Holo-Grid Ledger — Outputs
# ──────────────────────────────────────────────────────────────

output "forgejo_ipv4" {
  description = "Public IPv4 address of the Forgejo server"
  value       = length(hcloud_server.forgejo) > 0 ? hcloud_server.forgejo[0].ipv4_address : null
}

output "app_ipv4" {
  description = "Public IPv4 address of the App server"
  value       = length(hcloud_server.app) > 0 ? hcloud_server.app[0].ipv4_address : null
}

output "volume_id" {
  description = "Hetzner volume ID for the persistent data volume"
  value       = length(hcloud_volume.data) > 0 ? hcloud_volume.data[0].id : null
}

output "private_network_id" {
  description = "Hetzner private network ID"
  value       = length(hcloud_network.internal) > 0 ? hcloud_network.internal[0].id : null
}
