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.

Port default
App 3000
SSH 2020
Yolks
NameTag
ghcr.io/ptero-eggs/yolks:debianghcr.io/ptero-eggs/yolks:debian
Variables
NameDescriptionEnvironment VariableDefault ValueUser ViewableUser Editable
Disable SSHDisable SSH feature when it’s not availableDISABLE_SSHfalseYesNo
SSH PortSSH port displayed in clone URL.SSH_PORT2020YesNo
Versionyou can use latest, nightly or version (e.g. 1.18.1)VERSIONlatestYesYes
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 "-------------------------------------------------"