Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- {
- "_comment": "DO NOT EDIT: FILE GENERATED AUTOMATICALLY BY PTERODACTYL PANEL - PTERODACTYL.IO",
- "meta": {
- "version": "PTDL_v2",
- "update_url": null
- },
- "exported_at": "2025-07-06T11:01:48+00:00",
- "name": "Stirling-PDF",
- "description": "Stirling-PDF is a robust, locally hosted web-based PDF manipulation tool. It enables you to carry out various operations on PDF files, including splitting, merging, converting, reorganizing, adding images, rotating, compressing, and more.",
- "features": [
- "java_version"
- ],
- "docker_images": {
- "Java 21": "ghcr.io/pterodactyl/yolks:java_21",
- "Java 17": "ghcr.io/pterodactyl/yolks:java_17"
- },
- "file_denylist": [],
- "startup": "java -Xms{{SERVER_MEMORY}}M -Xmx{{SERVER_MEMORY}}M -Dfile.encoding=UTF-8 -jar {{JARFILE}}",
- "config": {
- "files": "{\r\n \"application.properties\": {\r\n \"parser\": \"properties\",\r\n \"find\": {\r\n \"server.port\": \"{{server.build.default.port}}\",\r\n \"server.address\": \"0.0.0.0\"\r\n }\r\n }\r\n}",
- "startup": "{\r\n \"done\": \"Started StirlingPdfApplication\"\r\n}",
- "logs": "{}",
- "stop": "^C"
- },
- "scripts": {
- "installation": {
- "script": "#!/bin/bash\r\n# Stirling-PDF Installation Script\r\n#\r\n# Server Files: /mnt/server\r\n\r\ncd /mnt/server\r\n\r\n# Make sure we have basic tools\r\necho \"Installing dependencies...\"\r\napt update\r\napt install -y curl wget jq\r\n\r\n# Determine download URL\r\nif [ -n \"${DOWNLOAD_URL}\" ] && [ \"${DOWNLOAD_URL}\" != \"\" ]; then\r\n echo \"Using provided download URL: ${DOWNLOAD_URL}\"\r\n ACTUAL_DOWNLOAD_URL=\"${DOWNLOAD_URL}\"\r\nelse\r\n # Get latest release from GitHub API\r\n echo \"Fetching latest release information...\"\r\n LATEST_RELEASE=$(curl -s \"https://api.github.com/repos/Stirling-Tools/Stirling-PDF/releases/latest\")\r\n \r\n if [ \"${VERSION}\" = \"latest\" ] || [ -z \"${VERSION}\" ]; then\r\n echo \"Getting latest version...\"\r\n VERSION=$(echo \"${LATEST_RELEASE}\" | jq -r '.tag_name' | sed 's/^v//')\r\n echo \"Latest version: ${VERSION}\"\r\n fi\r\n \r\n # Determine which JAR to download based on ENABLE_LOGIN\r\n if [ \"${ENABLE_LOGIN}\" = \"true\" ]; then\r\n JAR_NAME=\"Stirling-PDF-with-login.jar\"\r\n echo \"Downloading Stirling-PDF with login support...\"\r\n else\r\n JAR_NAME=\"Stirling-PDF.jar\"\r\n echo \"Downloading standard Stirling-PDF...\"\r\n fi\r\n \r\n ACTUAL_DOWNLOAD_URL=\"https://github.com/Stirling-Tools/Stirling-PDF/releases/download/v${VERSION}/${JAR_NAME}\"\r\nfi\r\n\r\necho \"Download URL: ${ACTUAL_DOWNLOAD_URL}\"\r\necho \"Target file: ${JARFILE}\"\r\n\r\n# Download the JAR file\r\necho \"Downloading Stirling-PDF...\"\r\nif [ -f \"${JARFILE}\" ]; then\r\n echo \"Backing up existing JAR file...\"\r\n mv \"${JARFILE}\" \"${JARFILE}.bak\"\r\nfi\r\n\r\ncurl -L -o \"${JARFILE}\" \"${ACTUAL_DOWNLOAD_URL}\"\r\n\r\nif [ ! -f \"${JARFILE}\" ]; then\r\n echo \"ERROR: Failed to download JAR file!\"\r\n if [ -f \"${JARFILE}.bak\" ]; then\r\n echo \"Restoring backup...\"\r\n mv \"${JARFILE}.bak\" \"${JARFILE}\"\r\n fi\r\n exit 1\r\nfi\r\n\r\n# Verify the JAR file\r\necho \"Verifying downloaded file...\"\r\nfile_size=$(stat -c%s \"${JARFILE}\")\r\nif [ \"$file_size\" -lt 1000000 ]; then\r\n echo \"ERROR: Downloaded file seems too small (${file_size} bytes). Download may have failed.\"\r\n cat \"${JARFILE}\"\r\n exit 1\r\nfi\r\n\r\necho \"Download completed successfully!\"\r\necho \"File size: ${file_size} bytes\"\r\n\r\n# Create application.properties if it doesn't exist\r\nif [ ! -f \"application.properties\" ]; then\r\n echo \"Creating default application.properties...\"\r\n cat > application.properties << EOF\r\nserver.port=8080\r\nserver.address=0.0.0.0\r\nlogging.level.stirling=INFO\r\nlogging.level.org.springframework.web=INFO\r\nEOF\r\nfi\r\n\r\n# Create necessary directories\r\nmkdir -p configs customFiles logs\r\n\r\necho \"Installation completed successfully!\"\r\necho \"JAR file: ${JARFILE}\"\r\necho \"Ready to start Stirling-PDF!\"",
- "container": "ghcr.io/pterodactyl/installers:debian",
- "entrypoint": "bash"
- }
- },
- "variables": [
- {
- "name": "JAR File Name",
- "description": "The name of the Stirling-PDF JAR file.",
- "env_variable": "JARFILE",
- "default_value": "Stirling-PDF.jar",
- "user_viewable": true,
- "user_editable": true,
- "rules": "required|regex:/^([\\w\\d._-]+)(\\.jar)$/",
- "field_type": "text"
- },
- {
- "name": "Version",
- "description": "The version of Stirling-PDF to install. Use 'latest' for the most recent version.",
- "env_variable": "VERSION",
- "default_value": "latest",
- "user_viewable": true,
- "user_editable": true,
- "rules": "required|string|max:20",
- "field_type": "text"
- },
- {
- "name": "Download URL",
- "description": "Direct download URL for a specific Stirling-PDF JAR file. Leave empty to use automatic version detection.",
- "env_variable": "DOWNLOAD_URL",
- "default_value": "",
- "user_viewable": false,
- "user_editable": false,
- "rules": "nullable|url",
- "field_type": "text"
- },
- {
- "name": "Enable Login Support",
- "description": "Enable this to download the version with login/authentication support.",
- "env_variable": "ENABLE_LOGIN",
- "default_value": "false",
- "user_viewable": true,
- "user_editable": true,
- "rules": "required|string|in:true,false",
- "field_type": "text"
- },
- {
- "name": "Security Features",
- "description": "Enable Docker security features. Set to 'false' for easier setup, 'true' for production.",
- "env_variable": "DOCKER_ENABLE_SECURITY",
- "default_value": "false",
- "user_viewable": true,
- "user_editable": true,
- "rules": "required|string|in:true,false",
- "field_type": "text"
- },
- {
- "name": "Language",
- "description": "Set the default language (e.g., en_GB, de_DE, fr_FR, es_ES, etc.)",
- "env_variable": "LANGS",
- "default_value": "en_GB",
- "user_viewable": true,
- "user_editable": true,
- "rules": "required|string|max:10",
- "field_type": "text"
- },
- {
- "name": "Advanced Features",
- "description": "Install book and advanced HTML operations. Set to 'false' for lighter installation.",
- "env_variable": "INSTALL_BOOK_AND_ADVANCED_HTML_OPS",
- "default_value": "false",
- "user_viewable": true,
- "user_editable": true,
- "rules": "required|string|in:true,false",
- "field_type": "text"
- }
- ]
- }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement