Rename inference endpoint to neuron.neurontechnologies.ai, add wildcard DNS for customer orgs
This commit is contained in:
+16
-3
@@ -5,11 +5,24 @@
|
||||
# Cloudflare provider reads CLOUDFLARE_API_TOKEN from env.
|
||||
# Zone ID for neurontechnologies.ai is set in terraform.tfvars.
|
||||
|
||||
# ── ai.neurontechnologies.ai → Soma inference gateway ────────────────────────
|
||||
# ── neuron.neurontechnologies.ai → Soma inference gateway ────────────────────
|
||||
|
||||
resource "cloudflare_record" "soma_ai" {
|
||||
resource "cloudflare_record" "soma_neuron" {
|
||||
zone_id = var.cloudflare_zone_id_neurontechnologies
|
||||
name = "ai"
|
||||
name = "neuron"
|
||||
type = "A"
|
||||
content = google_compute_global_address.prod.address
|
||||
proxied = true
|
||||
ttl = 1
|
||||
}
|
||||
|
||||
# ── *.neurontechnologies.ai → Customer org subdomains ────────────────────────
|
||||
# Enterprise customers get {org}.neurontechnologies.ai routed to soma.
|
||||
# Soma reads the Host header to identify the tenant.
|
||||
|
||||
resource "cloudflare_record" "soma_wildcard" {
|
||||
zone_id = var.cloudflare_zone_id_neurontechnologies
|
||||
name = "*"
|
||||
type = "A"
|
||||
content = google_compute_global_address.prod.address
|
||||
proxied = true
|
||||
|
||||
Reference in New Issue
Block a user