{"meta":{"slug":"pterodactyl-gitea","name":"Pterodactyl Gitea","category":"gitea","source":"pelican","owner":"pelican-eggs","repo":"software","branch":"main","path":"gitea/egg-pterodactyl-gitea.json","rawUrl":"https://raw.githubusercontent.com/pelican-eggs/software/main/gitea/egg-pterodactyl-gitea.json","indexedAt":1792246788483},"egg":{"_comment":"DO NOT EDIT: FILE GENERATED AUTOMATICALLY BY PTERODACTYL PANEL - PTERODACTYL.IO","meta":{"version":"PTDL_v2","update_url":null},"exported_at":"2026-01-03T18:57:01+00:00","name":"Gitea","author":"mario.franze@gmail.com","description":"Gitea is a community managed lightweight code hosting solution written in Go. It is published under the MIT license.","features":null,"docker_images":{"Debian":"ghcr.io/pelican-eggs/yolks:debian"},"file_denylist":[],"startup":"./gitea web -p {{SERVER_PORT}} -c ./app.ini","config":{"files":"{\n    \"custom\\/app.ini\": {\n        \"parser\": \"file\",\n        \"find\": {\n            \"DISABLE_SSH\": \"DISABLE_SSH: {{server.build.env.DISABLE_SSH}}\",\n            \"SSH_PORT\": \"SSH_PORT: {{server.build.env.SSH_PORT}}\"\n        }\n    }\n}","startup":"{\n    \"done\": \"Listen: \"\n}","logs":"{}","stop":"^^C"},"scripts":{"installation":{"script":"## Gitea Installscript\r\n\r\n## Variables\r\nARCH=$([[ \"$(uname -m)\" == \"x86_64\" ]] && echo \"amd64\" || echo \"arm64\")\r\nLATEST=$(curl -sSL https://dl.gitea.io/gitea/version.json | jq -r .latest.version)\r\n\r\n\r\ncd /mnt/server\r\n\r\n## install gitea\r\necho -e \"Download url: https://dl.gitea.io/gitea/${LATEST}/gitea-${LATEST}-linux-${ARCH}\"\r\nif [ -z \"${VERSION}\" ] || [ \"${VERSION}\" == \"latest\" ]; then\r\n    echo -e \"downloading Gitea $LATEST\"\r\n    curl -sSL -o gitea https://dl.gitea.io/gitea/${LATEST}/gitea-${LATEST}-linux-${ARCH}\r\nelif [ \"${VERSION}\" == \"nightly\" ]; then\r\n    echo -e \"downloading Gitea nightly\"\r\n    curl -sSL -o gitea https://dl.gitea.io/gitea/main/gitea-main-linux-${ARCH}\r\nelse\r\n    curl -sSL -o gitea https://dl.gitea.io/gitea/${VERSION}/gitea-${VERSION}-linux-${ARCH}\r\n    echo -e \"downloading Gitea $VERSION\"\r\nfi\r\n\r\nchmod +x gitea\r\n\r\nmkdir -p custom\r\n\r\nif [ -f \"/mnt/server/custom/app.ini\" ]; then\r\n    echo \"config file exists\"\r\nelse\r\n    echo \"[server]\r\n    LOCAL_ROOT_URL = http://${SERVER_IP}:${SERVER_PORT}/\r\n    DOMAIN           = ${SERVER_IP}\r\n    HTTP_PORT        = ${SERVER_PORT}\r\n    ROOT_URL         = http://${SERVER_IP}:${SERVER_PORT}/\r\n    DISABLE_SSH      = ${DISABLE_SSH}\r\n    SSH_PORT         = ${SSH_PORT}\" > /mnt/server/custom/app.ini\r\nfi\r\n\r\necho -e \"-------------------------------------------------\"\r\necho -e \"Installation completed\"\r\necho -e \"-------------------------------------------------\"","container":"ghcr.io/pelican-eggs/installers:debian","entrypoint":"bash"}},"variables":[{"name":"Disable SSH","description":"Disable SSH feature when it’s not available","env_variable":"DISABLE_SSH","default_value":"false","user_viewable":true,"user_editable":false,"rules":"required|string|in:true,false","field_type":"text"},{"name":"SSH Port","description":"SSH port displayed in clone URL.","env_variable":"SSH_PORT","default_value":"2020","user_viewable":true,"user_editable":false,"rules":"required|integer|between:1024,65535","field_type":"text"},{"name":"Version","description":"you can use latest, nightly or version (e.g. 1.18.1)","env_variable":"VERSION","default_value":"latest","user_viewable":true,"user_editable":true,"rules":"required|string|max:20","field_type":"text"}]},"readme":"# Gitea\n\n[Gitea](https://gitea.io/en-us/) is a community managed lightweight code hosting solution written in Go. It is published under the MIT license.\n\n## Supported Versions\nYou can set the version in Version variable. You can use following values:\n\nlatest      - latest stable release\nnightly     - latest Github master branch\nversion     - set the version according this page: https://dl.gitea.io/gitea\n\n## Server Ports\n\nPorts required to run the server in a table format.\n\n| Port | default |\n| ---- | ------- |\n| App  | 3000    |\n| SSH  | 2020    |\n"}