Initial commit - realms platform

This commit is contained in:
doomtube 2026-01-06 00:26:54 -05:00
parent 2aa075e842
commit b3682b1936
12 changed files with 148 additions and 100 deletions

View file

@ -180,17 +180,7 @@ resource "digitalocean_record" "app" {
domain = var.dns_zone
type = "A"
name = "@"
value = digitalocean_droplet.app.ipv4_address
ttl = 600
}
resource "digitalocean_record" "app_www" {
count = var.manage_dns ? 1 : 0
domain = var.dns_zone
type = "A"
name = "www"
name = var.dns_record_name
value = digitalocean_droplet.app.ipv4_address
ttl = 600
}

View file

@ -84,6 +84,12 @@ variable "dns_zone" {
default = "realms.pub"
}
variable "dns_record_name" {
description = "DNS record name (subdomain). Use '@' for root or 'beeta' for beeta.realms.pub"
type = string
default = "beeta"
}
# =============================================================================
# Forgejo Registry
# =============================================================================

View file

@ -0,0 +1,8 @@
terraform {
required_providers {
digitalocean = {
source = "digitalocean/digitalocean"
version = "~> 2.34"
}
}
}