Dockerfile and Egg to run Nginx and PHP-FPM inside a Pterodactyl server.
This repository provides what is needed to run Nginx as part of a Pterodactyl server, useful for hosting web applications or acting as a reverse proxy for services managed by the panel.
Dockerfile— Image with Nginx, PHP-FPM, and required scripts.entrypoint.sh— Startup script.egg-nginx--p-h-p--f-p-m.json— Egg to use in Pterodactyl.logrotate.d— Log rotation configuration for Nginx.
- Nginx integration directly from a Pterodactyl-managed server.
- Automatic Composer installations when starting your server.
- Integrated
set_real_ip_from. - Integrated
limit_req. - Integrated
Spatie media library optimization tools. - Automatic log rotation.
- Nginx version:
nginx/1.22.1. - PHP versions:
8.3.30, 8.4.19, 8.5.4.
- Pterodactyl installed.
- Upload
egg-nginx--p-h-p--f-p-m.jsonto your Pterodactyl panel. - Upload the file
pterodactyl-nginx
to the/etc/logrotate.d/directory on your main host. - Upload the file
pterodactyl-phpfpm
to the/etc/logrotate.d/directory on your main host.