mirror of
https://github.com/phfroidmont/self-hosting.git
synced 2025-12-25 05:36:59 +01:00
Assign floating ip to backend1
This commit is contained in:
parent
fa9752c4ba
commit
2e7e4e7ec3
4 changed files with 11 additions and 0 deletions
8
dns.tf
8
dns.tf
|
|
@ -23,6 +23,14 @@ resource "hetznerdns_record" "banditlair_dedicated_a" {
|
|||
ttl = 600
|
||||
}
|
||||
|
||||
resource "hetznerdns_record" "nextcloud_a" {
|
||||
zone_id = data.hetznerdns_zone.banditlair_zone.id
|
||||
name = "cloud"
|
||||
value = data.hcloud_floating_ip.main_ip.ip_address
|
||||
type = "A"
|
||||
ttl = 600
|
||||
}
|
||||
|
||||
# Matrix
|
||||
resource "hetznerdns_record" "matrix_a" {
|
||||
zone_id = data.hetznerdns_zone.banditlair_zone.id
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue