feat: add Hetzner-hosted todo application stack

Implement the server-rendered Go todo application with PostgreSQL persistence, Tailwind styling, health checks, and test coverage.

Provision production and staging infrastructure with OpenTofu, including private networking, static IPs, Object Storage backups, and load balancing.

Configure Rocky Linux hosts with Ansible, rootless Podman, PostgreSQL, WAL-G backup automation, staging restores, and generated inventory.
This commit is contained in:
cole-maxwell1
2026-08-06 21:34:56 -05:00
commit 1382c42803
68 changed files with 2380 additions and 0 deletions
+67
View File
@@ -0,0 +1,67 @@
variable "hcloud_token" {
type = string
sensitive = true
}
variable "project_name" {
type = string
default = "todo"
}
variable "network_zone" {
type = string
default = "eu-central"
}
variable "server_location" {
type = string
default = "nbg1"
}
variable "server_type" {
type = string
default = "cx22"
}
variable "ssh_key_ids" {
type = list(number)
}
variable "ssh_source_cidrs" {
type = list(string)
description = "Trusted public CIDRs permitted to SSH to nodes."
}
variable "prod_private_ip" {
type = string
default = "10.0.1.10"
}
variable "staging_private_ip" {
type = string
default = "10.0.1.20"
}
variable "s3_access_key" {
type = string
sensitive = true
}
variable "s3_secret_key" {
type = string
sensitive = true
}
variable "s3_endpoint" {
type = string
description = "Hetzner Object Storage endpoint, for example https://nbg1.your-objectstorage.com."
}
variable "s3_region" {
type = string
default = "nbg1"
}
variable "bucket_name" {
type = string
}