feat: nginx proxy manager
This commit is contained in:
14
terraform/routing.tf
Normal file
14
terraform/routing.tf
Normal file
@@ -0,0 +1,14 @@
|
||||
# The Route53 DNS zone.
|
||||
data "aws_route53_zone" "main" {
|
||||
name = local.domain
|
||||
}
|
||||
|
||||
# Push all domain traffic through the reverse proxy.
|
||||
resource "aws_route53_record" "domain" {
|
||||
zone_id = data.aws_route53_zone.main.zone_id
|
||||
name = "*.${data.aws_route53_zone.main.name}"
|
||||
type = "A"
|
||||
ttl = "60"
|
||||
records = [hcloud_primary_ip.public_ip.ip_address]
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user