Pterodactyl Resources
Pterodactyl Resources
To join our community, please login or register!
Internet Explorer
Internet Explorer is not supported. Please upgrade to a more modern browser.
Pterodactyl Nginx egg (Wordpress, Git & Cloudflare Tunnel)

Pterodactyl Nginx egg (Wordpress, Git & Cloudflare Tunnel)

Pterodactyl Nginx egg
๐Ÿ“œ Changelog (Version 3.0 โ€“ 2025-06-23)
๐ŸŽฏ Major Milestone: Intelligent Auto-Update System

We're excited to announce a major milestone in the evolution of the Pterodactyl Nginx Egg! Version 3.0 introduces our most significant advancement yet: a fully automated update system powered by our custom-built Tavuru API.
โœจ New Features & Improvements
๐Ÿ”„ Intelligent Auto-Update System

NEW: Fully automated update checking and application via Tavuru API integration
NEW: Smart differential updatesโ€”downloads only changed files, not entire codebase
NEW: Self-update capability with safe staging mechanism for the update system itself
NEW: Three update modes: Conservative (check-only), Automatic (apply), and Disabled
NEW: Version tracking with automatic initialization for existing installations
NEW: Detailed update summaries showing files added, modified, and removed

๐Ÿ›ก๏ธ Enhanced Security & Data Protection

NEW: Selective update system that never touches user data (www/ directory)
NEW: Protected staging mechanism prevents corruption during self-updates
NEW: Automatic backup creation before applying updates
NEW: LogCleaner now respects protected directories (auto-update staging areas)

๐ŸŒ Tavuru API Development

NEW: Custom-built API infrastructure for version management and differential updates
NEW: RESTful endpoints for version checking, diff generation, and download management
NEW: Intelligent caching and request optimization for reliable service delivery
NEW: ZIP-based differential update packages for efficient bandwidth usage

๐Ÿ“š Documentation & User Experience

IMPROVED: Comprehensive documentation for all auto-update features and configuration options
NEW: Detailed troubleshooting guides and configuration examples
NEW: Clear visual indicators for update status and progress
IMPROVED: Better error messages with actionable troubleshooting hints

๐Ÿ”ง Technical Details
Configuration Variables Added

AUTOUPDATE_STATUS - Enable/disable auto-update functionality (default: enabled)
AUTOUPDATE_FORCE - Automatically apply updates vs. check-only mode (default: check-only)

What Gets Updated

โœ… Module scripts (modules/)
โœ… Nginx configurations (nginx/)
โœ… PHP configurations (php/)
โœ… Core orchestration scripts (start-modules.sh)
โœ… Documentation (README.md, LICENSE)
โŒ User content and data (www/, logs, uploads)

๐ŸŽ‰ Impact & Benefits

This release represents a paradigm shift in how Pterodactyl eggs can be maintained and updated. Users no longer need to manually track releases, download updates, or worry about missing critical security patches. The system intelligently manages its own evolution while protecting user data and maintaining system stability.

The underlying Tavuru API also opens possibilities for future enhancements including release notifications, rollback capabilities, and advanced deployment strategies.
๐Ÿ”ฎ Looking Forward

Version 3.0 establishes the foundation for continuous evolution. Future updates will be delivered seamlessly through this new infrastructure, ensuring that users always have access to the latest features, security improvements, and optimizations without manual intervention.

This milestone wouldn't have been possible without the development of our custom API infrastructure and the commitment to providing a seamless user experience. Thank you for your continued support!

Full Changelog: v2.1...v3.0
3 days ago • 0 downloads
๐Ÿ› Bug Fixes & Improvements

โœ… Fixes the problem that no web error occurs when the port is subsequently changed.
about 1 month ago • 50 downloads
# ๐Ÿ“œ Changelog (Version 2.0 โ€“ 2025-05-01)

## โœจ New Features

### ๐ŸŽ‰ Full Modular Orchestrator
- **Auto-discover modules** in `modules/*` and run them in a defined order
- **Dynamic enable flags**: each module uses `_STATUS` (`true`/`1` = on)
- **Execution order**:
1. **LogCleaner** (clears temp and log files)
2. All other enabled modules (Git, Composer, Cloudflare Tunnel, PHP-NGINX, etc.)
3. **NGINX** last in the foreground (blocks to keep container alive)

### ๐Ÿงน LogCleaner Module
- Controlled by `LOGCLEANER_STATUS` toggle
- Deletes temporary files, oversized logs (`> MAX_SIZE_MB`), and old logs (`> MAX_AGE_DAYS`)
- **Dry-run** support (`DRY_RUN`) to preview deletions
- Live output of each deleted file for full transparency

### ๐ŸŒฒ Git Module
- Controlled by `GIT_STATUS` toggle
- Guard-clause pattern: early exit if disabled, Git missing, or not a repository
- Auto-pulls latest changes in `/home/container/www`

### ๐Ÿ“ฆ Composer Module
- Controlled by `COMPOSER_STATUS`; installs packages from `COMPOSER_MODULES`
- Creates and exports a writable `COMPOSER_CACHE_DIR` to eliminate cache warnings
- Honors `COMPOSER_WWW_DIR` for custom webroot

### ๐ŸŒ Cloudflare Tunnel Module
- Controlled by `CLOUDFLARED_STATUS`; token read from `CLOUDFLARED_TOKEN`
- Writes logs to `CLOUDFLARED_LOG_FILE` and PID to `CLOUDFLARED_PID_FILE`
- Monitors startup with configurable `CLOUDFLARED_STATUS_TIMES` and timeout (`CLOUDFLARED_MAX_ATTEMPTS`)

### ๐Ÿ˜ PHP-NGINX Startup
- Auto-detects installed PHP version via CLI if `PHP_VERSION` unset
- Falls back between `php-fpm` and generic `php-fpm` binary
- Clear error on version mismatch between Docker image and `PHP_VERSION`

---

## ๐Ÿ› Bug Fixes & Improvements

### ๐Ÿ”ง Script Hygiene
- Strips Windows CRLFs from all scripts at startup
- Unified `set -euo pipefail` and `trap` for consistent error reporting
- Centralized color definitions and header formatting

### ๐Ÿ“– Documentation
- Updated each moduleโ€™s README with new env vars and usage examples
- Added Egg JSON snippets for all toggles (`*_STATUS`, etc.)

### โšก Performance & Reliability
- Fixed Composer cache directory to eliminate โ€œcannot create cacheโ€ warnings
- Replaced fragile `bash -c` calls with native shell functions (`delete_file`, `enabled()`)
- Eliminated stray โ€œcommand not foundโ€ and misformatted output

---

## ๐Ÿšจ Upgrade Notice
**This is a major, non-backwards-compatible update.**
Due to extensive script and configuration changes, **you must recreate or rebuild your webserver/container** when upgrading to v2.0. Existing instances will not automatically adapt to the new module structure, env var names, and startup sequence.

---

## ๐Ÿš€ Deprecated & Removed
- **PHP 8.0** support marked as EOL (no longer recommended)
- Legacy Cloudflared file-based token handling removed in favor of `CLOUDFLARED_TOKEN` env var

---

## What's Changed
* Feat/composer by @Ym0T in https://github.com/Ym0T/pterodactyl-nginx-egg/pull/29
* Matched the egg's variable casing of the environment variable name by @mattmentrup in https://github.com/Ym0T/pterodactyl-nginx-egg/pull/33

## New Contributors
* @mattmentrup made their first contribution in https://github.com/Ym0T/pterodactyl-nginx-egg/pull/33

**Full Changelog**: https://github.com/Ym0T/pterodactyl-nginx-egg/compare/v1.5.1...v2.0

## What's Changed
* Complete Modularization & Startup Process Optimization by @Ym0T in https://github.com/Ym0T/pterodactyl-nginx-egg/pull/34


**Full Changelog**: https://github.com/Ym0T/pterodactyl-nginx-egg/compare/v1.5.2...v2.0
about 1 month ago • 4 downloads
โœจ New Features
๐Ÿš€ Automatic Log Cleanup Before Cloudflared Startup

Logs are now automatically deleted if they exceed 10MB or are older than 30 days:
/home/container/logs/naccess.log
/home/container/logs/nerror.log
/home/container/logs/error.log
/home/container/logs/php_errors.log
/home/container/logs/php-fpm.log
๐Ÿ“Œ Prevents excessive log accumulation and improves disk space management.

๐ŸŽจ Improved Status Messages & Formatting

Color-coded console output for better readability:
๐Ÿ”ต Blue โ†’ Headers & sections
๐ŸŸฃ Purple โ†’ Cleanup processes
๐ŸŸก Yellow โ†’ Status messages (e.g., "Waiting for Cloudflared to start...")
๐ŸŸข Green โ†’ Success messages
๐Ÿ”ด Red โ†’ Errors or missing files
๐Ÿ“ข More structured output with section dividers (โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€).

๐Ÿ›  Optimized Cloudflared Startup

Cloudflared startup process improved:
Better error handling:
If Cloudflared fails, the error is displayed immediately.
Last 10 log lines are shown for troubleshooting.
Safer PID file storage.

๐Ÿ› Bug Fixes & Improvements

โœ… Improved Error Handling:
Cloudflared token validation: If missing or empty, a clear error is shown.
Log existence checks: No errors if logs donโ€™t exist.
๐Ÿ— Code Refactoring:
Better script structure with logical sections.
Standardized use of echo -e for consistent formatting.
5 months ago • 70 downloads
### โœจ Added
- ๐Ÿš€ Integration of **Cloudflared** for secure tunneling. (#22 | @zarti0)

### ๐Ÿ›  Fixed
- ๐Ÿ› Minor bug fixes to improve stability and performance.

### ๐Ÿ”„ Changed
- ๐Ÿ“ Revised text for better clarity.
5 months ago • 17 downloads
New
[โœ”๏ธ] PHP8.4 support added
5 months ago • 0 downloads
[โœ”๏ธ] Fixes the problem that when not using Git or wordpress no php info file is created during the initial installation.
9 months ago • 90 downloads
Fixed
[โœ”๏ธ] Fix the error that the web server is permanently marked as starting
[โœ”๏ธ] Fix the bug that the use of git login data led to an incorrect download url for the git repo
9 months ago • 3 downloads

1.4

Added
[+] Simplified version changer added
[+] Added support for git (www folder)
[+] Added support for ARM64 (thanks to @GergoEB)
[+] Comments have been added to some files for a better overview
[+] Added "install-script.sh" for a better overview of the installation script

Other
[O] PHP version 7.3 removed
9 months ago • 0 downloads
Fixed
[โœ”๏ธ] Incorrectly defined variable in egg-nginx.json (led to problems when assigning ram for php)

Other
[O] License updated
about 1 year ago • 403 downloads
Added
[+] More PHP extensions
[+] Access and error log now optionally displayable in the console

Fixed
[โœ”๏ธ] Missing PHP extensions between PHP versions
[โœ”๏ธ] Access and error log cannot be displayed in the console

Other
[O] Small improvements
about 1 year ago • 9 downloads
Added PHP8.3 support
about 1 year ago • 29 downloads
Updatet Egg.nginx.json
about 1 year ago • 2 downloads
about 1 year ago • 0 downloads