terraform: bind github pages to nix-community.org ()

This allows to host repos under the domain if we want to.

For now, only have nur.nix-community.org
This commit is contained in:
zimbatm 2020-06-17 12:18:06 +02:00 committed by GitHub
parent 00a37f304f
commit 629ea4b6f6
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23

View file

@ -52,3 +52,19 @@ resource "cloudflare_record" "mumble-AAAA" {
value = "2a03:3b40:fe:ab::1"
type = "AAAA"
}
# For each github page, create a CNAME alias to nix-community.github.io
locals {
github_pages = [
"nur"
]
}
resource "cloudflare_record" "nix-community-org-github-pages" {
for_each = {for page in local.github_pages: page => page}
zone_id = local.nix_community_org_zone_id
name = each.value
value = "nix-community.github.io"
type = "CNAME"
}