From effffda956650b5603f3b1c7f018bb03a561dee5 Mon Sep 17 00:00:00 2001 From: Bitnami Bot Date: Fri, 5 Jun 2026 12:37:27 +0200 Subject: [PATCH] [bitnami/gitea] Release 1.26.2-debian-12-r6 (#94358) Signed-off-by: Bitnami Bot --- bitnami/gitea/1/debian-12/Dockerfile | 4 ++-- .../rootfs/opt/bitnami/gitea/custom/conf/app.ini.template | 1 + .../1/debian-12/rootfs/opt/bitnami/scripts/gitea-env.sh | 2 ++ .../gitea/1/debian-12/rootfs/opt/bitnami/scripts/libgitea.sh | 5 +++++ bitnami/gitea/README.md | 1 + 5 files changed, 11 insertions(+), 2 deletions(-) diff --git a/bitnami/gitea/1/debian-12/Dockerfile b/bitnami/gitea/1/debian-12/Dockerfile index 92b722f35b7c..b73acf755d86 100644 --- a/bitnami/gitea/1/debian-12/Dockerfile +++ b/bitnami/gitea/1/debian-12/Dockerfile @@ -7,7 +7,7 @@ ARG DOWNLOADS_URL="downloads.bitnami.com/files/stacksmith" ARG TARGETARCH LABEL org.opencontainers.image.base.name="docker.io/bitnami/minideb:bookworm" \ - org.opencontainers.image.created="2026-06-05T07:57:02Z" \ + org.opencontainers.image.created="2026-06-05T10:04:25Z" \ org.opencontainers.image.description="Application packaged by Broadcom, Inc." \ org.opencontainers.image.documentation="https://github.com/bitnami/containers/tree/main/bitnami/gitea/README.md" \ org.opencontainers.image.source="https://github.com/bitnami/containers/tree/main/bitnami/gitea" \ @@ -52,7 +52,7 @@ COPY rootfs / RUN /opt/bitnami/scripts/gitea/postunpack.sh ENV APP_VERSION="1.26.2" \ BITNAMI_APP_NAME="gitea" \ - IMAGE_REVISION="5" \ + IMAGE_REVISION="6" \ NSS_WRAPPER_LIB="/opt/bitnami/common/lib/libnss_wrapper.so" \ PATH="/opt/bitnami/common/bin:/opt/bitnami/gitea/bin:$PATH" diff --git a/bitnami/gitea/1/debian-12/rootfs/opt/bitnami/gitea/custom/conf/app.ini.template b/bitnami/gitea/1/debian-12/rootfs/opt/bitnami/gitea/custom/conf/app.ini.template index e528a951e611..a7071b11c1da 100644 --- a/bitnami/gitea/1/debian-12/rootfs/opt/bitnami/gitea/custom/conf/app.ini.template +++ b/bitnami/gitea/1/debian-12/rootfs/opt/bitnami/gitea/custom/conf/app.ini.template @@ -20,6 +20,7 @@ PASSWD = {{GITEA_DATABASE_PASSWORD}} [server] DOMAIN = {{GITEA_DOMAIN}} +HTTP_ADDR = {{GITEA_HTTP_ADDR}} HTTP_PORT = {{GITEA_HTTP_PORT}} PROTOCOL = {{GITEA_PROTOCOL}} ROOT_URL = {{GITEA_ROOT_URL}} diff --git a/bitnami/gitea/1/debian-12/rootfs/opt/bitnami/scripts/gitea-env.sh b/bitnami/gitea/1/debian-12/rootfs/opt/bitnami/scripts/gitea-env.sh index 97701cfa6749..ebb4ecfc6e53 100644 --- a/bitnami/gitea/1/debian-12/rootfs/opt/bitnami/scripts/gitea-env.sh +++ b/bitnami/gitea/1/debian-12/rootfs/opt/bitnami/scripts/gitea-env.sh @@ -38,6 +38,7 @@ gitea_env_vars=( GITEA_SSH_DOMAIN GITEA_SSH_LISTEN_PORT GITEA_SSH_PORT + GITEA_HTTP_ADDR GITEA_HTTP_PORT GITEA_PROTOCOL GITEA_ROOT_URL @@ -105,6 +106,7 @@ export GITEA_DOMAIN="${GITEA_DOMAIN:-localhost}" export GITEA_SSH_DOMAIN="${GITEA_SSH_DOMAIN:-${GITEA_DOMAIN}}" export GITEA_SSH_LISTEN_PORT="${GITEA_SSH_LISTEN_PORT:-2222}" export GITEA_SSH_PORT="${GITEA_SSH_PORT:-${GITEA_SSH_LISTEN_PORT}}" +export GITEA_HTTP_ADDR="${GITEA_HTTP_ADDR:-0.0.0.0}" export GITEA_HTTP_PORT="${GITEA_HTTP_PORT:-3000}" export GITEA_PROTOCOL="${GITEA_PROTOCOL:-http}" export GITEA_ROOT_URL="${GITEA_ROOT_URL:-${GITEA_PROTOCOL}://${GITEA_DOMAIN}:${GITEA_HTTP_PORT}}" diff --git a/bitnami/gitea/1/debian-12/rootfs/opt/bitnami/scripts/libgitea.sh b/bitnami/gitea/1/debian-12/rootfs/opt/bitnami/scripts/libgitea.sh index 3d8664fdd409..c9aec6ea6003 100644 --- a/bitnami/gitea/1/debian-12/rootfs/opt/bitnami/scripts/libgitea.sh +++ b/bitnami/gitea/1/debian-12/rootfs/opt/bitnami/scripts/libgitea.sh @@ -227,6 +227,7 @@ gitea_update_conf_file() { gitea_conf_set "server" "SSH_DOMAIN" "$GITEA_SSH_DOMAIN" gitea_conf_set "server" "SSH_PORT" "$GITEA_SSH_PORT" gitea_conf_set "server" "SSH_LISTEN_PORT" "$GITEA_SSH_LISTEN_PORT" + gitea_conf_set "server" "HTTP_ADDR" "$GITEA_HTTP_ADDR" gitea_conf_set "server" "HTTP_PORT" "$GITEA_HTTP_PORT" gitea_conf_set "log" "ROOT_PATH" "$GITEA_LOG_ROOT_PATH" gitea_conf_set "repository" "ROOT" "$GITEA_REPO_ROOT_PATH" @@ -283,6 +284,8 @@ gitea_pass_wizard() { wizard_url="http://127.0.0.1:${port}" cookie_file="/tmp/cookie$(generate_random_string -t alphanumeric -c 8)" curl_opts=("--location" "--silent" "--cookie" "$cookie_file" "--cookie-jar" "$cookie_file") + # Set HTTP_ADDR to 127.0.0.1 to avoid binding to 0.0.0.0 during wizard setup + gitea_conf_set "server" "HTTP_ADDR" "127.0.0.1" # Ensure gitea is started gitea_start_bg # Step 0: Get cookies @@ -332,6 +335,8 @@ gitea_pass_wizard() { return 1 fi gitea_stop + # After passing the wizard, we can bind to the configured address + gitea_conf_set "server" "HTTP_ADDR" "$GITEA_HTTP_ADDR" info "Gitea installation finished" true } diff --git a/bitnami/gitea/README.md b/bitnami/gitea/README.md index 38a67ccdb80a..869c535cc647 100644 --- a/bitnami/gitea/README.md +++ b/bitnami/gitea/README.md @@ -86,6 +86,7 @@ The following tables list the main variables you can set. | `GITEA_SSH_DOMAIN` | Domain name of this server, used for displayed clone URL. | `${GITEA_DOMAIN}` | | `GITEA_SSH_LISTEN_PORT` | Port for the built-in SSH server. | `2222` | | `GITEA_SSH_PORT` | SSH port displayed in clone URL. | `${GITEA_SSH_LISTEN_PORT}` | +| `GITEA_HTTP_ADDR` | Gitea HTTP listen address | `0.0.0.0` | | `GITEA_HTTP_PORT` | Gitea HTTP listen port | `3000` | | `GITEA_PROTOCOL` | [http, https, fcgi, http+unix, fcgi+unix] | `http` | | `GITEA_ROOT_URL` | Overwrite the automatically generated public URL. This is useful if the internal and the external URL don't match | `${GITEA_PROTOCOL}://${GITEA_DOMAIN}:${GITEA_HTTP_PORT}` |