Egg Repository

Pterodactyl Community Egg Repository

Gitea

Gitea is a community managed lightweight code hosting solution written in Go. It is published under the MIT license.

Read Me

Gitea

Gitea is a community managed lightweight code hosting solution written in Go. It is published under the MIT license.

Supported Versions

You can set the version in Version variable. You can use following values:

latest - latest stable release nightly - latest Github master branch version - set the version according this page: https://dl.gitea.io/gitea

Server Ports

Ports required to run the server in a table format.

Portdefault
App3000
SSH2020
Yolks
NameTag
ghcr.io/ptero-eggs/yolks:debianghcr.io/ptero-eggs/yolks:debian
Variables and Startup

Startup Command

./gitea web -p {{SERVER_PORT}} -c ./app.ini

Variables

Disable SSH

Disable SSH feature when it’s not available

Environment Variable: DISABLE_SSH
Default Value: false
User Viewable:
User Editable:
SSH Port

SSH port displayed in clone URL.

Environment Variable: SSH_PORT
Default Value: 2020
User Viewable:
User Editable:
Version

you can use latest, nightly or version (e.g. 1.18.1)

Environment Variable: VERSION
Default Value: latest
User Viewable:
User Editable:
Install Script
## Gitea Installscript

## update system
apt update
apt -y install --no-install-recommends jq curl ca-certificates

## Variables
ARCH=$([[ "$(uname -m)" == "x86_64" ]] && echo "amd64" || echo "arm64")
LATEST=$(curl -sSL https://dl.gitea.io/gitea/version.json | jq -r .latest.version)


cd /mnt/server

## install gitea
echo -e "Download url: https://dl.gitea.io/gitea/${LATEST}/gitea-${LATEST}-linux-${ARCH}"
if [ -z "${VERSION}" ] || [ "${VERSION}" == "latest" ]; then
    echo -e "downloading Gitea $LATEST"
    curl -sSL -o gitea https://dl.gitea.io/gitea/${LATEST}/gitea-${LATEST}-linux-${ARCH}
elif [ "${VERSION}" == "nightly" ]; then
    echo -e "downloading Gitea nightly"
    curl -sSL -o gitea https://dl.gitea.io/gitea/main/gitea-main-linux-${ARCH}
else
    curl -sSL -o gitea https://dl.gitea.io/gitea/${VERSION}/gitea-${VERSION}-linux-${ARCH}
    echo -e "downloading Gitea $VERSION"
fi

chmod +x gitea

mkdir -p custom

if [ -f "/mnt/server/custom/app.ini" ]; then
    echo "config file exists"
else
    echo "[server]
    LOCAL_ROOT_URL = http://${SERVER_IP}:${SERVER_PORT}/
    DOMAIN           = ${SERVER_IP}
    HTTP_PORT        = ${SERVER_PORT}
    ROOT_URL         = http://${SERVER_IP}:${SERVER_PORT}/
    DISABLE_SSH      = ${DISABLE_SSH}
    SSH_PORT         = ${SSH_PORT}" > /mnt/server/custom/app.ini
fi

echo -e "-------------------------------------------------"
echo -e "Installation completed"
echo -e "-------------------------------------------------"
Installation Imageghcr.io/ptero-eggs/installers:debianInstallation Entrypointbash