terraform: bind github pages to nix-community.org (#27)
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:
parent
00a37f304f
commit
629ea4b6f6
1 changed files with 16 additions and 0 deletions
|
@ -52,3 +52,19 @@ resource "cloudflare_record" "mumble-AAAA" {
|
||||||
value = "2a03:3b40:fe:ab::1"
|
value = "2a03:3b40:fe:ab::1"
|
||||||
type = "AAAA"
|
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"
|
||||||
|
}
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue