You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Copy file name to clipboardExpand all lines: README.md
+43
Original file line number
Diff line number
Diff line change
@@ -79,6 +79,49 @@ With **Cloudflared**, you can create a secure tunnel to your server, making it a
79
79
80
80
✅ You have successfully set up Cloudflared and connected it to your server!<br><br>
81
81
🔹 Info: Your web server ip and port does not have to be accessible from outside and can have a local IP such as 127.0.0.1.
82
+
<br><br>
83
+
## How to Use Composer Modules
84
+
85
+
This Pterodactyl Egg allows you to easily install additional PHP libraries (Composer modules) for your server. Here's how:
86
+
87
+
1.**Locate the `Composer modules` Variable:** When creating or editing your server in the Pterodactyl panel, you will find a variable named `Composer modules`.
88
+
89
+
2.**Specify the Modules:** In the value field of the `Composer modules` variable, enter a space-separated list of the Composer packages you wish to install. You can also specify the desired version constraints.
90
+
91
+
***Basic Package:** To install the latest stable version of a package, simply enter its name:
92
+
```
93
+
vendor/package
94
+
```
95
+
Example: `symfony/http-foundation`
96
+
97
+
* **Specific Version:** To install a specific version or version range, use the following format:
98
+
```
99
+
vendor/package:version_constraint
100
+
```
101
+
Examples:
102
+
* `monolog/monolog:^2.0` (installs the latest version within the 2.x branch)
103
+
* `doctrine/orm:~2.10` (installs a version compatible with 2.10)
104
+
* `nesbot/carbon:^2.50`
105
+
106
+
* **Multiple Modules:** To install multiple modules, separate them with spaces:
3. **Save and Start/Restart Your Server:** After entering the desired Composer modules in the `COMPOSER_MODULES` variable, save your server configuration. If your server is already running, you will need to restart it for the changes to take effect.
113
+
114
+
4. **Module Installation:** During the server startup process, the Egg will automatically detect the modules listed in the `COMPOSER_MODULES` variable and attempt to install them using Composer. You can monitor the server console for the installation output.
115
+
116
+
**Important Notes:**
117
+
118
+
* Ensure that the package names and version constraints you enter are correct and exist on Packagist ([https://packagist.org/](https://packagist.org/)).
119
+
* Incorrectly specified modules or version constraints may lead to installation errors. Check your server console for any error messages.
120
+
* Installing a large number of modules or very complex dependencies can increase the server startup time.
121
+
* This Egg assumes that Composer is already installed within the server environment.
122
+
123
+
By following these steps, you can easily extend the functionality of your server by adding various PHP libraries through Composer modules.
"description": "Pterodactyl Nginx Egg\r\n\r\nThe Pterodactyl Nginx Egg is a web server solution for Pterodactyl, featuring Nginx, PHP, Git support, Cloudflare Tunnel integration, and optional WordPress installation. It supports AMD64 & ARM64 architectures and allows users to choose their preferred PHP version (8.0 \u2013 8.4).\r\nKey Features:\r\n\r\n\u2705 Supports multiple PHP versions\r\n\u2705 Git integration for automatic deployment\r\n\u2705 Cloudflare Tunnel support for secure remote access\r\n\u2705 Optional WordPress setup\r\n\u2705 HTTPS configuration support\r\n\u2705 Automatic updates for Git repositories",
10
+
"description": "Pterodactyl Nginx Egg\r\n\r\nThe Pterodactyl Nginx Egg is a web server solution for Pterodactyl, featuring Nginx, PHP, Git support, Cloudflare Tunnel integration, composer and optional WordPress installation. It supports AMD64 & ARM64 architectures and allows users to choose their preferred PHP version (8.0 \u2013 8.4).\r\nKey Features:\r\n\r\n\u2705 Supports multiple PHP versions\r\n\u2705 Git integration for automatic deployment\r\n\u2705 Cloudflare Tunnel support for secure remote access\r\n\u2705 Optional WordPress setup\r\n\u2705 HTTPS configuration support\r\n\u2705 Automatic updates for Git repositories",
"description": "Select the correct PHP version! See the tag behind the Docker image. \r\nExample: Selected image (ghcr.io\/ym0t\/nginx_php:8.4)\r\nEnter in the field: 8.4",
38
-
"env_variable": "PHP_VERSION",
39
-
"default_value": "",
36
+
"name": "Startup Command",
37
+
"description": "The startup file for Nginx.",
38
+
"env_variable": "STARTUP_COMMAND",
39
+
"default_value": ".\/nginx.sh",
40
40
"user_viewable": true,
41
41
"user_editable": true,
42
-
"rules": "required|string|max:3",
42
+
"rules": "required|string",
43
43
"field_type": "text"
44
44
},
45
45
{
@@ -53,23 +53,23 @@
53
53
"field_type": "text"
54
54
},
55
55
{
56
-
"name": "Memory_limit",
57
-
"description": "Change the memory_limit value from the php.ini file",
58
-
"env_variable": "memory_limit",
59
-
"default_value": "128M",
56
+
"name": "PHP Version",
57
+
"description": "Select the correct PHP version! See the tag behind the Docker image. \r\nExample: Selected image (ghcr.io\/ym0t\/nginx_php:8.4)\r\nEnter in the field: 8.4",
58
+
"env_variable": "PHP_VERSION",
59
+
"default_value": "",
60
60
"user_viewable": true,
61
61
"user_editable": true,
62
-
"rules": "required|string|max:20",
62
+
"rules": "required|string|max:3",
63
63
"field_type": "text"
64
64
},
65
65
{
66
-
"name": "Startup Command",
67
-
"description": "The startup file for Nginx.",
68
-
"env_variable": "STARTUP_COMMAND",
69
-
"default_value": ".\/nginx.sh",
66
+
"name": "Memory_limit",
67
+
"description": "Change the memory_limit value from the php.ini file",
68
+
"env_variable": "MEMORY_LIMIT",
69
+
"default_value": "128M",
70
70
"user_viewable": true,
71
71
"user_editable": true,
72
-
"rules": "required|string",
72
+
"rules": "required|string|max:20",
73
73
"field_type": "text"
74
74
},
75
75
{
@@ -161,6 +161,16 @@
161
161
"user_editable": true,
162
162
"rules": "required|string",
163
163
"field_type": "text"
164
+
},
165
+
{
166
+
"name": "Composer modules",
167
+
"description": "Enter a space-separated list of Composer packages with their version constraints to be installed. For example: vendor\/package1:^2.0 vendor\/package2:~1.5",
0 commit comments