- Caddy ersetzt den Hetzner-LB: terminiert TLS (Portal-Domain automatisch) und load-balanced per reverse_proxy über die App-Nodes. Für Custom-Domains (§11) On-Demand-TLS, autorisiert über GET /internal/tls-allowed. - TlsCheckController + DomainRepository::findVerifiedByHostname: erlaubt Zertifikate nur für Portal-Domain oder verifizierte Domains (Schutz vor Cert-Flooding). - Terraform: hcloud_load_balancer entfernt, Caddy-Server + Firewall (80/443) + cloud-init-caddy (Caddyfile templated mit Upstreams/Domain/ACME). - Optional Hetzner DNS via API (manage_dns): A-Record Portal + Wildcard → Caddy. - nginx.prod: /internal zu Symfony geroutet; APP_PORTAL_DOMAIN-Env. Validiert: Caddyfile (caddy validate), Terraform (validate), /internal/tls-allowed (200/403/400). Co-Authored-By: Claude Opus 4.8 <noreply@anthropic.com>
15 lines
436 B
HCL
15 lines
436 B
HCL
output "caddy_ip" {
|
|
description = "Öffentliche IP des Caddy-Edge → hierauf den DNS-A-Record (Portal + *.) setzen"
|
|
value = hcloud_server.caddy.ipv4_address
|
|
}
|
|
|
|
output "app_server_ips" {
|
|
description = "Öffentliche IPs der App-Nodes (SSH/Debug)"
|
|
value = hcloud_server.app[*].ipv4_address
|
|
}
|
|
|
|
output "db_server_ip" {
|
|
description = "Öffentliche IP des DB-Nodes (SSH)"
|
|
value = hcloud_server.db.ipv4_address
|
|
}
|