Something went wrong. Try again.
A reverse proxy for my home lan
Something went wrong. Try again.
Files
- HCL 100%
README.md
This is a Terraform project for deploying and managing the backend infrastructure for konva.link
Required Environment Variables #
| Tofu Variable | Description | Source |
|---|---|---|
hcloud_token |
Hetzner Cloud API token | Hetzner Cloud Console - Security > API Tokens |
hetzner_s3_bucket |
Hetzner S3 bucket name for Terraform state | Hetzner Storage Box |
hetzner_s3_access_key |
Hetzner S3 access key for Terraform backend | Hetzner Storage Box Access Keys |
hetzner_s3_secret_key |
Hetzner S3 secret key for Terraform backend | Hetzner Storage Box Secret Keys |
ssh_private_key |
SSH private key content (full content as string) | Generated with ssh-keygen |
tailscale_authkey |
Tailscale authentication key (reusable, must be regenerated every 90 days) | Tailscale Admin Console - Settings > Keys |
bunny_api_key |
Bunny.net API key for DNS management | Bunny.net Dashboard - API Keys |
bunny_zone_id |
Bunny.net DNS zone ID for konva.link | Bunny.net DNS Zone Settings |
letsencrypt_email |
Email address for Let's Encrypt notifications | Your email address |
Deployment #
You can use Nix to deploy:
$ nix-shell -p opentofu -p ansible -p openssl
nix-shell$ tofu apply
Updating configuration #
Server is configured through ansible. To apply, run
nix-shell$ cd ansible
nix-shell$ ansible-playbook -i inventory.ini site.yml --ask-vault-pass --private-key "private_key"