Gonçalo Rodrigues 6dd7592ac9 fix(gitea): add TLS, scheme helper, and Skaffold registry config (#41)
Changes from PR #40 that didn't make it into main:
- local.scheme derived from var.domain (http for homelab.local, https otherwise)
- Gitea ROOT_URL and runner bootstrap URLs use local.scheme
- Gitea Helm ingress gets TLS + letsencrypt certresolver annotations
- Skaffold CI profile sets defaultRepo=git.gugagr.xyz/admin

Co-authored-by: Gonçalo Rodrigues <guga@Goncalos-MacBook-Pro.local>
Co-authored-by: Claude Sonnet 4.6 <noreply@anthropic.com>
2026-06-26 22:06:06 +01:00

22 lines
654 B
HCL

variable "enable_gitea" {
description = "Deploy Gitea and the act runner. Set to false to skip (e.g. on a dev laptop without a dedicated server)."
type = bool
default = false
}
variable "enable_monitoring" {
description = "Deploy Prometheus, Grafana, Loki, Jaeger, and Fluent Bit. Set to false on small VMs to save ~1.5 GB RAM."
type = bool
default = true
}
variable "domain" {
description = "Base domain for all ingress hostnames (e.g. gugagr.xyz). Subdomains are created per service."
type = string
default = "homelab.local"
}
locals {
scheme = var.domain == "homelab.local" ? "http" : "https"
}