Add git-ssh DNS record, remove project assignment block

This commit is contained in:
Ryan Moon
2026-03-31 16:36:24 -05:00
parent d6ff4746d0
commit 4d7fa1f54f
2 changed files with 8 additions and 16 deletions

View File

@@ -151,15 +151,13 @@ resource "cloudflare_record" "vaultwarden" {
ttl = 1
}
# ─── Project assignment ───────────────────────────────────────────────────────
data "digitalocean_project" "infra" {
name = var.do_project_name
# DNS only — no Cloudflare proxy, for direct SSH/git access
resource "cloudflare_record" "git_ssh" {
zone_id = data.cloudflare_zone.main.id
name = "git-ssh"
type = "A"
value = digitalocean_droplet.gitea.ipv4_address
proxied = false
ttl = 3600
}
resource "digitalocean_project_resources" "infra" {
project = data.digitalocean_project.infra.id
resources = [
digitalocean_droplet.gitea.urn,
]
}

View File

@@ -36,9 +36,3 @@ variable "admin_ip" {
description = "Your public IP for SSH and git access (without /32)"
type = string
}
variable "do_project_name" {
description = "DigitalOcean project name to assign resources to"
type = string
default = "lunarfront-infra"
}