initial commit
Signed-off-by: Jason Hall <imjasonh@gmail.com>
This commit is contained in:
commit
4dc1b58f2f
20 changed files with 1398 additions and 0 deletions
50
terraform/variables.tf
Normal file
50
terraform/variables.tf
Normal file
|
|
@ -0,0 +1,50 @@
|
|||
variable "project_id" {
|
||||
type = string
|
||||
description = "GCP project ID"
|
||||
}
|
||||
|
||||
variable "region" {
|
||||
type = string
|
||||
default = "us-central1"
|
||||
description = "GCP region (use us-west1, us-central1, or us-east1 for the always-free e2-micro)"
|
||||
}
|
||||
|
||||
variable "zone" {
|
||||
type = string
|
||||
default = "us-central1-a"
|
||||
description = "GCP zone within region"
|
||||
}
|
||||
|
||||
variable "domain" {
|
||||
type = string
|
||||
description = "Domain name for the Forgejo instance (e.g. git.example.com)"
|
||||
}
|
||||
|
||||
variable "admin_email" {
|
||||
type = string
|
||||
description = "Google account that gets IAP SSH access"
|
||||
}
|
||||
|
||||
variable "forgejo_image" {
|
||||
type = string
|
||||
default = "codeberg.org/forgejo/forgejo:11"
|
||||
description = "Forgejo container image, pinned to a major version"
|
||||
}
|
||||
|
||||
variable "caddy_image" {
|
||||
type = string
|
||||
default = "caddy:2-alpine"
|
||||
description = "Caddy container image, pinned to a major version"
|
||||
}
|
||||
|
||||
variable "manage_dns" {
|
||||
type = bool
|
||||
default = false
|
||||
description = "If true, manage an A record in Cloud DNS. Requires dns_managed_zone."
|
||||
}
|
||||
|
||||
variable "dns_managed_zone" {
|
||||
type = string
|
||||
default = ""
|
||||
description = "Cloud DNS managed zone name (only used when manage_dns = true)"
|
||||
}
|
||||
Loading…
Add table
Add a link
Reference in a new issue