WIP: TFGrid single-VM deployment with web gateway (HTTPS) #42

Closed
mik-tf wants to merge 3 commits from development_deploy_tfgrid into development_production_container
Owner

Summary

  • Add deploy/single-vm/ with OpenTofu + scripts for TFGrid deployment
  • Uses grid_name_proxy web gateway for HTTPS (no public IPv4 needed)
  • Docker-based: pulls pre-built container, runs with systemd auto-restart
  • Multi-environment: make all ENV=prod or make all ENV=dev

Files

  • tf/main.tf — VM + network + web gateway
  • scripts/setup.sh — Docker install, image pull, systemd service
  • scripts/update.sh — Quick pull + restart
  • Makefile — Orchestration (init, deploy, setup, update, test, info)
  • envs/prod/ and envs/dev/ — Per-environment config

Closes #41

## Summary - Add `deploy/single-vm/` with OpenTofu + scripts for TFGrid deployment - Uses `grid_name_proxy` web gateway for HTTPS (no public IPv4 needed) - Docker-based: pulls pre-built container, runs with systemd auto-restart - Multi-environment: `make all ENV=prod` or `make all ENV=dev` ## Files - `tf/main.tf` — VM + network + web gateway - `scripts/setup.sh` — Docker install, image pull, systemd service - `scripts/update.sh` — Quick pull + restart - `Makefile` — Orchestration (init, deploy, setup, update, test, info) - `envs/prod/` and `envs/dev/` — Per-environment config Closes #41
OpenTofu config with grid_name_proxy for HTTPS via TFGrid web gateway,
Docker-based setup/update scripts, multi-environment Makefile (prod/dev).

Closes #41
- Mnemonic set as TF_VAR_mnemonic in ~/hero/cfg/env/env.sh, not in tfvars
- credentials.auto.tfvars now infra config only (node_id, cpu, memory, etc.)
- FORGEJO_TOKEN passed from local env to VM via Makefile SSH
- app.env reduced to non-secret config (image, port)
- Use canonical FORGEJO_TOKEN name per env_secrets skill
Makefile auto-sources TF_VAR_mnemonic and FORGEJO_TOKEN from
~/hero/cfg/env/env.sh — no manual sourcing needed, just make all ENV=prod.
Example files trimmed to only what they contain, no secret references.
mik-tf closed this pull request 2026-02-27 14:52:40 +00:00
Author
Owner

Superseded by #43 (combined deploy branch with all PRs merged).

Superseded by #43 (combined deploy branch with all PRs merged).

Pull request closed

Sign in to join this conversation.
No reviewers
No labels
No milestone
No project
No assignees
1 participant
Notifications
Due date
The due date is invalid or out of range. Please use the format "yyyy-mm-dd".

No due date set.

Dependencies

No dependencies set.

Reference
lhumina_code/hero_services!42
No description provided.