hosts.web01: init

This machine is intended to host web applications.
Initially [Lemmy](https://join-lemmy.org/), but perhaps more down the line.

The initial PR only deals with setting up the machine and required infra like DNS, not setting up Lemmy itself which will be a follow-up.
This commit is contained in:
adisbladis 2023-07-04 16:55:32 +12:00
parent efeb2ce042
commit c91f606639
8 changed files with 187 additions and 0 deletions

View file

@ -91,6 +91,27 @@ resource "cloudflare_record" "nix-community-org-darwin02-AAAA" {
type = "AAAA"
}
resource "cloudflare_record" "nix-community-org-web01-AAAA" {
zone_id = local.nix_community_zone_id
name = "web01"
value = "2a01:4f9:c011:932f::1"
type = "AAAA"
}
resource "cloudflare_record" "nix-community-org-web01-A" {
zone_id = local.nix_community_zone_id
name = "web01"
value = "95.216.139.211"
type = "A"
}
resource "cloudflare_record" "nix-community-org-lemmy-CNAME" {
zone_id = local.nix_community_zone_id
name = "lemmy"
value = "web01.nix-community.org"
type = "CNAME"
}
# Used by nix-community/nixpkgs-docker
resource "cloudflare_record" "nix-community-org-docker-CNAME" {
zone_id = local.nix_community_zone_id