Reposilite v1.0.4

飒爽师叔 · 2026-06-30 09:27

更新日志

[AI翻译] 名称、描述、说明、JSON描述、变量

版本内容

{
    "_comment": "DO NOT EDIT: FILE GENERATED AUTOMATICALLY BY PANEL",
    "meta": {
        "update_url": "https://eggs.pterodactyl.top/eggs/15/download/egg-reposilite.json",
        "version": "PTDL_v2"
    },
    "exported_at": "2024-06-02T14:40:54+00:00",
    "name": "Reposilite",
    "author": "mk@kcra.me",
    "description": "Lightweight and easy-to-use repository management software dedicated for Maven based artifacts in the JVM ecosystem.",
    "features": null,
    "docker_images": {
        "registry.cn-shanghai.aliyuncs.com/pterodactyl-china/yolks:java_11": "registry.cn-shanghai.aliyuncs.com/pterodactyl-china/yolks:java_11",
        "registry.cn-shanghai.aliyuncs.com/pterodactyl-china/yolks:java_16": "registry.cn-shanghai.aliyuncs.com/pterodactyl-china/yolks:java_16",
        "registry.cn-shanghai.aliyuncs.com/pterodactyl-china/yolks:java_17": "registry.cn-shanghai.aliyuncs.com/pterodactyl-china/yolks:java_17",
        "registry.cn-shanghai.aliyuncs.com/pterodactyl-china/yolks:java_21": "registry.cn-shanghai.aliyuncs.com/pterodactyl-china/yolks:java_21",
        "registry.cn-shanghai.aliyuncs.com/pterodactyl-china/yolks:java_8": "registry.cn-shanghai.aliyuncs.com/pterodactyl-china/yolks:java_8"
    },
    "file_denylist": [],
    "startup": "java -Xmx{{SERVER_MEMORY}}M -Dreposilite.port={{SERVER_PORT}} -jar reposilite.jar --port {{SERVER_PORT}}",
    "config": {
        "files": "{}",
        "logs": "{}",
        "startup": "{\r\n    \"done\": \"Done (\"\r\n}",
        "stop": "stop"
    },
    "scripts": {
        "installation": {
            "container": "registry.cn-shanghai.aliyuncs.com/pterodactyl-images/installers:debian",
            "entrypoint": "bash",
            "script": "#!/bin/sh\r\n# Switch to mounted directory\r\ncd /mnt/server\r\n# Find latest Reposilite version, if needed\r\nif [ \"$REPOSILITE_VERSION\" == \"latest\" ]; then\r\n    REPOSILITE_VERSION=$(grep -oPm1 \"(?<=<latest>)[^<]+\" <<< \"$(curl -s https://maven.reposilite.com/releases/com/reposilite/reposilite/maven-metadata.xml)\")\r\nfi\r\n# Check if -all suffixed jar is available\r\nstatus_code=$(curl --write-out '%{http_code}' -X HEAD -s -o /dev/null https://maven.reposilite.com/releases/com/reposilite/reposilite/${REPOSILITE_VERSION}/reposilite-${REPOSILITE_VERSION}-all.jar)\r\n# Download new Reposilite\r\nif [ \"$status_code\" == 200 ]; then\r\n    curl -o reposilite.jar https://maven.reposilite.com/releases/com/reposilite/reposilite/${REPOSILITE_VERSION}/reposilite-${REPOSILITE_VERSION}-all.jar\r\nelse\r\n    curl -o reposilite.jar https://maven.reposilite.com/releases/com/reposilite/reposilite/${REPOSILITE_VERSION}/reposilite-${REPOSILITE_VERSION}.jar\r\nfi"
        }
    },
    "variables": [
        {
            "name": "Reposilite version",
            "description": "The version of Reposilite.",
            "env_variable": "REPOSILITE_VERSION",
            "default_value": "latest",
            "user_viewable": true,
            "user_editable": true,
            "rules": "required|string",
            "field_type": "text"
        }
    ]
}