[ci skip] add Forgejo task pipeline for OpenClaw AI agent
Forgejo issues as a task queue for OpenClaw: - Forgejo OAuth2 with Authentik SSO, self-registration disabled - Webhook-triggered task processing (instant) + CronJob backup (5min poll) - Tasks processed via Mistral Large 3 (NVIDIA NIM API) - Results posted as issue comments, auto-labeled and closed - Comment follow-ups and reopened issues supported - n8n RBAC for OpenClaw pod exec (future workflow integration)
This commit is contained in:
parent
0d03037393
commit
efe0cdefc8
5 changed files with 842 additions and 0 deletions
|
|
@ -3,6 +3,11 @@ variable "tls_secret_name" {
|
|||
sensitive = true
|
||||
}
|
||||
variable "nfs_server" { type = string }
|
||||
variable "forgejo_authentik_client_id" { type = string }
|
||||
variable "forgejo_authentik_client_secret" {
|
||||
type = string
|
||||
sensitive = true
|
||||
}
|
||||
|
||||
|
||||
resource "kubernetes_namespace" "forgejo" {
|
||||
|
|
@ -66,6 +71,29 @@ resource "kubernetes_deployment" "forgejo" {
|
|||
name = "USER_GID"
|
||||
value = 1000
|
||||
}
|
||||
# Root URL for OAuth2 redirect callbacks
|
||||
env {
|
||||
name = "FORGEJO__server__ROOT_URL"
|
||||
value = "https://forgejo.viktorbarzin.me"
|
||||
}
|
||||
# Disable local registration — only allow OAuth2 (Authentik)
|
||||
env {
|
||||
name = "FORGEJO__service__DISABLE_REGISTRATION"
|
||||
value = "false"
|
||||
}
|
||||
env {
|
||||
name = "FORGEJO__service__ALLOW_ONLY_EXTERNAL_REGISTRATION"
|
||||
value = "true"
|
||||
}
|
||||
env {
|
||||
name = "FORGEJO__openid__ENABLE_OPENID_SIGNIN"
|
||||
value = "false"
|
||||
}
|
||||
# Allow webhook delivery to internal k8s services
|
||||
env {
|
||||
name = "FORGEJO__webhook__ALLOWED_HOST_LIST"
|
||||
value = "*.svc.cluster.local"
|
||||
}
|
||||
volume_mount {
|
||||
name = "data"
|
||||
mount_path = "/data"
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue