Initial commit - realms platform
This commit is contained in:
parent
2aa075e842
commit
b3682b1936
12 changed files with 148 additions and 100 deletions
|
|
@ -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
|
||||
}
|
||||
|
|
|
|||
|
|
@ -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
|
||||
# =============================================================================
|
||||
|
|
|
|||
8
terraform/modules/app_server/versions.tf
Normal file
8
terraform/modules/app_server/versions.tf
Normal file
|
|
@ -0,0 +1,8 @@
|
|||
terraform {
|
||||
required_providers {
|
||||
digitalocean = {
|
||||
source = "digitalocean/digitalocean"
|
||||
version = "~> 2.34"
|
||||
}
|
||||
}
|
||||
}
|
||||
Loading…
Add table
Add a link
Reference in a new issue