2026-05-30 14:10:01 +02:00
|
|
|
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.
|
2026-05-30 18:16:38 +02:00
|
|
|
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"
|
2026-05-30 14:10:01 +02:00
|
|
|
lock_method = "POST"
|
|
|
|
|
unlock_method = "DELETE"
|
|
|
|
|
}
|
|
|
|
|
}
|