mirror of
https://gitlab.archlinux.org/archlinux/infrastructure.git
synced 2024-09-26 22:11:09 +02:00
Add A/AAAA domain for pages
This makes it easier for projects to use it as they only have to provide a single CNAME entry instead of having to provide a A and a AAAA entry.
This commit is contained in:
parent
26dcf64a41
commit
2972584fcc
@ -24,18 +24,11 @@ something hosted below one of our domains is official).
|
||||
1. [ ] At this point, we'll need to add some stuff to `archlinux.tf`. It should look something like this.
|
||||
Make sure to substitute the `your_domain` and `your-domain` strings accordingly:
|
||||
|
||||
resource "hetznerdns_record" "gitlab_pages_your_domain_a" {
|
||||
resource "hetznerdns_record" "gitlab_pages_your_domain_cname" {
|
||||
zone_id = hetznerdns_zone.archlinux.id
|
||||
name = "your-domain"
|
||||
value = hcloud_floating_ip.gitlab_pages.ip_address
|
||||
type = "A"
|
||||
}
|
||||
|
||||
resource "hetznerdns_record" "gitlab_pages_your_domain_aaaa" {
|
||||
zone_id = hetznerdns_zone.archlinux.id
|
||||
name = "your-domain"
|
||||
value = var.gitlab_pages_ipv6
|
||||
type = "AAAA"
|
||||
value = "pages"
|
||||
type = "CNAME"
|
||||
}
|
||||
|
||||
resource "hetznerdns_record" "gitlab_pages_your_domain_verification" {
|
||||
|
@ -1077,6 +1077,20 @@ resource "hcloud_server" "gitlab" {
|
||||
}
|
||||
}
|
||||
|
||||
resource "hetznerdns_record" "archlinux_org_gitlab_pages_a" {
|
||||
zone_id = hetznerdns_zone.archlinux.id
|
||||
name = "pages"
|
||||
value = hcloud_floating_ip.gitlab_pages.ip_address
|
||||
type = "A"
|
||||
}
|
||||
|
||||
resource "hetznerdns_record" "archlinux_org_gitlab_pages_aaaa" {
|
||||
zone_id = hetznerdns_zone.archlinux.id
|
||||
name = "pages"
|
||||
value = var.gitlab_pages_ipv6
|
||||
type = "AAAA"
|
||||
}
|
||||
|
||||
resource "hcloud_floating_ip" "gitlab_pages" {
|
||||
type = "ipv4"
|
||||
description = "GitLab Pages"
|
||||
|
Loading…
Reference in New Issue
Block a user