Something went wrong. Try again.
An atproto indexer and web app that scrapes domains from collections it sees
Something went wrong. Try again.
2.2 kB · 76 lines
at main
1234567891011121314151617181920212223242526272829303132333435363738394041424344454647484950515253545556575859606162636465666768697071727374757677variable "hcloud_token" { description = "Hetzner Cloud API token (project → Security → API Tokens)" type = string sensitive = true}
variable "ssh_public_key_path" { description = "Path to the SSH public key to install on the server. Ignored if existing_ssh_key_name is set." type = string default = "~/.ssh/id_ed25519.pub"}
variable "existing_ssh_key_name" { description = "Name of an SSH key already uploaded to Hetzner. Use this if your key is already there to avoid the 'SSH key not unique' error. Run: hcloud ssh-key list" type = string default = ""}
variable "server_name" { description = "Name for the Hetzner server" type = string default = "at-tracker"}
variable "server_type" { description = "Hetzner server type (cx22 = 2 vCPU / 4 GB RAM)" type = string default = "cx22"}
variable "location" { description = "Hetzner datacenter location" type = string default = "fsn1" # Falkenstein, Germany — also: nbg1, hel1, ash, sin
validation { condition = contains(["fsn1", "nbg1", "hel1", "ash", "sin"], var.location) error_message = "Must be one of: fsn1, nbg1, hel1, ash, sin." }}
variable "ssh_allowed_ips" { description = "CIDR ranges allowed to SSH in. Restrict to your own IP in production." type = list(string) default = ["0.0.0.0/0", "::/0"]}
# ── App configuration (written to .env on the server) ─────────────────────────
variable "docker_image" { description = "DockerHub image to pull and run (e.g. youruser/at-tracker:latest)" type = string}
variable "domain" { description = "Public domain for the app (e.g. tracker.yourdomain.com) — Caddy obtains TLS automatically" type = string}
variable "postgres_password" { description = "Password for the Postgres database — choose something strong" type = string sensitive = true}
variable "postgres_user" { description = "Postgres username" type = string default = "attracker"}
variable "postgres_db" { description = "Postgres database name" type = string default = "attracker"}