From a0ac55e746fbba9424c4861540865393f9e97494 Mon Sep 17 00:00:00 2001 From: Alexandre Pires Date: Fri, 9 May 2025 23:22:34 +0200 Subject: [PATCH] feat(gitea): update Gitea version to 1.23.7 and enhance liveness probe with TLS support --- terraform/k8sapps/config.tf | 2 +- terraform/modules/apps/gitea/main.tf | 5 +++-- terraform/modules/apps/gitea/resources/app.ini.tpl | 4 +++- 3 files changed, 7 insertions(+), 4 deletions(-) diff --git a/terraform/k8sapps/config.tf b/terraform/k8sapps/config.tf index 494d8c2..aa1860c 100644 --- a/terraform/k8sapps/config.tf +++ b/terraform/k8sapps/config.tf @@ -18,7 +18,7 @@ locals { } # gitea - gitea_version = "1.23.4" + gitea_version = "1.23.7" gitea_fqdn = "code.${local.primary_domain}" # sftpgo diff --git a/terraform/modules/apps/gitea/main.tf b/terraform/modules/apps/gitea/main.tf index 724340e..a956998 100644 --- a/terraform/modules/apps/gitea/main.tf +++ b/terraform/modules/apps/gitea/main.tf @@ -98,8 +98,9 @@ resource "kubernetes_deployment" "gitea" { liveness_probe { http_get { - path = "/api/healthz" - port = "http" + path = "/api/healthz" + port = "http" + scheme = var.tls_enabled ? "HTTPS" : "HTTP" } initial_delay_seconds = 200 period_seconds = 300 diff --git a/terraform/modules/apps/gitea/resources/app.ini.tpl b/terraform/modules/apps/gitea/resources/app.ini.tpl index d1ccdf2..d13c0ee 100644 --- a/terraform/modules/apps/gitea/resources/app.ini.tpl +++ b/terraform/modules/apps/gitea/resources/app.ini.tpl @@ -28,11 +28,13 @@ DISABLE_SSH = ${DISABLE_SSH} SSH_PORT = ${SSH_PORT} SSH_LISTEN_PORT = ${SSH_PORT} LFS_START_SERVER = true -LFS_CONTENT_PATH = /data/git/lfs LFS_JWT_SECRET = ${LFS_JWT_SECRET} DOMAIN = ${DOMAIN} OFFLINE_MODE = false +[lfs] +PATH = /data/git/lfs + [database] PATH = /data/gitea/gitea.db DB_TYPE = mysql