boma/terraform/environments/production/backend.tf

18 lines
980 B
Terraform
Raw Normal View History

terraform {
backend "http" {
# Forgejo HTTP state backend.
# Replace <owner> and <repo> with your Forgejo organisation and repository name.
# Verify the exact path format against your running Forgejo instance's API docs.
# Authentication: set TF_HTTP_USERNAME (Forgejo username) and
# TF_HTTP_PASSWORD (Forgejo personal access token) as environment variables.
#
# If Forgejo's HTTP state endpoint is unavailable, remove this block entirely
# to fall back to local state on the control node.
address = "https://forgejo.nyumbani.baobab.band/api/v1/repos/<owner>/<repo>/raw/terraform/state/production.tfstate"
lock_address = "https://forgejo.nyumbani.baobab.band/api/v1/repos/<owner>/<repo>/raw/terraform/state/production.tfstate/lock"
unlock_address = "https://forgejo.nyumbani.baobab.band/api/v1/repos/<owner>/<repo>/raw/terraform/state/production.tfstate/lock"
lock_method = "POST"
unlock_method = "DELETE"
}
}