1
0
Fork 0
forge/terraform/variables.tf

51 lines
1.2 KiB
Terraform
Raw Normal View History

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)"
}