|
1 |
| - |
2 | 1 | # Pterodactyl Nginx egg
|
3 | 2 |
|
4 |
| -Nginx web server egg with PHP and optional Wordpress installation. |
5 |
| - |
| 3 | +Nginx web server egg with PHP, optional Wordpress installation and git support. |
6 | 4 |
|
7 | 5 | ## Features
|
8 |
| -You can select the desired PHP version. |
| 6 | + |
| 7 | +#### Git support for your webserver |
| 8 | +#### You can select the desired PHP version. |
9 | 9 | - ✅ 8.3
|
10 | 10 | - ✅ 8.2
|
11 | 11 | - ✅ 8.1 [Only critical security updates]
|
12 |
| -- ✅ 8.0 [EOL] |
13 |
| -- ✅ 7.3 [EOL] |
| 12 | +- ☑️ 8.0 [EOL] |
14 | 13 |
|
15 |
| -https://www.php.net/supported-versions.php |
| 14 | +[PHP supported versions](https://www.php.net/supported-versions.php) |
16 | 15 |
|
17 | 16 | ## How to install
|
18 |
| -- **Step 1:** Download the egg (json file egg-nginx.json) |
| 17 | + |
| 18 | +- **Step 1:** Download the egg (json file `egg-nginx.json`) |
19 | 19 | - **Step 2:** In your panel, go to the "Nests" category in the sidebar
|
20 | 20 | - **Step 3:** Import the egg under "Import egg" and then press "save" at the bottom right
|
21 | 21 | - **Step 4:** Create a new server and select the "Nginx" egg
|
22 | 22 | - **Step 5:** Select the corresponding Docker image with the desired PHP version
|
23 | 23 | - **Step 6:** Fill in the text fields. Whether Wordpress is desired or not. It is important to **enter the selected PHP version in the PHP version field**.
|
24 | 24 |
|
25 |
| - |
26 | 25 | ## FAQ
|
27 | 26 |
|
28 | 27 | #### In which folder do I upload my files for my site?
|
29 | 28 | Here the "www" folder is used as a public folder, which can be accessed by everyone. Added files can be accessed in this folder.
|
30 | 29 |
|
| 30 | +## How do I use Git support? |
| 31 | + |
| 32 | +#### Instructions for Git support |
| 33 | +Git support allows you to automatically clone a Git repository into the www folder of your web server and apply the latest changes every time you restart (git pull). This is how it works: |
| 34 | +Prerequisites: |
31 | 35 |
|
| 36 | +#### Prerequisites: |
| 37 | +- Git Status must be enabled to use Git. |
| 38 | +- GIT_ADDRESS must contain a valid Git repository that you want to clon |
| 39 | + |
| 40 | +#### Steps to set up (Specify GIT_ADDRESS): |
| 41 | +- When creating the web server, you can specify a Git repository URL in the GIT_ADDRESS field. |
| 42 | +- Example: https://github.com/username/repository.git |
| 43 | + |
| 44 | +#### Activate Git status: |
| 45 | +- Make sure that the Git status is set to ‘active’ (1 or true) so that the repository is managed automatically. |
| 46 | + |
| 47 | +#### Automatic installation: |
| 48 | +- When the server is first created, the specified repository is automatically cloned into the www folder of your server. |
| 49 | + |
| 50 | +#### Automatic updates: |
| 51 | +- After each restart of the web server, the repository in the www folder is automatically updated to the latest version (git pull). |
32 | 52 |
|
33 | 53 | ## How to use https://
|
34 |
| -Go to the file: |
| 54 | + |
| 55 | +Go to the file: |
| 56 | + |
35 | 57 | ```bash
|
36 | 58 | /home/container/nginx/conf.d/default.conf
|
37 | 59 | ```
|
38 | 60 |
|
| 61 | +Change "listen" to: |
39 | 62 |
|
40 |
| -Change "listen" to: |
41 | 63 | ```bash
|
42 | 64 | listen <YOUR_PORT> ssl;
|
43 | 65 | ```
|
| 66 | + |
44 | 67 | Please also change the spacer distance. Otherwise the "listen" will be overwritten each time the egg is restarted.
|
45 | 68 |
|
46 | 69 | Add the following lines:
|
| 70 | + |
47 | 71 | ```bash
|
48 |
| - ssl_certificate /home/container/your_cert.crt; |
49 |
| - ssl_certificate_key /home/container/your_cert_key.key; |
50 |
| - ssl_protocols TLSv1.2 TLSv1.3; |
51 |
| - ssl_ciphers HIGH:!aNULL:!MD5; |
| 72 | +ssl_certificate /home/container/your_cert.crt; |
| 73 | +ssl_certificate_key /home/container/your_cert_key.key; |
| 74 | +ssl_protocols TLSv1.2 TLSv1.3; |
| 75 | +ssl_ciphers HIGH:!aNULL:!MD5; |
52 | 76 | ```
|
53 | 77 |
|
54 | 78 | Adjust the lines accordingly.
|
55 |
| -Furthermore, if not already done, adjust to your domain: |
| 79 | + |
| 80 | +Furthermore, if not already done, adjust to your domain: |
| 81 | + |
56 | 82 | ```bash
|
57 | 83 | server_name www.example.com;
|
58 | 84 | ```
|
59 | 85 |
|
60 | 86 | ## Change PHP version
|
| 87 | + |
61 | 88 | Changing the PHP version is currently still somewhat cumbersome. A revised version will be available in the future.
|
62 | 89 |
|
63 |
| -- **Step 1:** Change the content of the file "php_version.txt" in "/home/container" to the version you want e.g. "8.3" |
64 |
| - |
| 90 | +- **Step 1:** In your Pterodactyl panel, go to the "Startup" tab on your web server. Change the variable "PHP VERSION" to the desired version. |
65 | 91 |
|
66 |
| -- **Step 2:** In your Pterodactyl panel, go to the "Startup" tab on your web server. Change the variable "PHP VERSION" to the desired version. |
67 |
| - |
| 92 | + |
68 | 93 |
|
69 |
| -- **Step 3:** Finally, you need to customise the Docker image. Select the appropriate Docker image to match the version. |
70 |
| - |
| 94 | +--- |
71 | 95 |
|
| 96 | +- **Step 2:** Finally, you need to customise the Docker image. Select the appropriate Docker image to match the version. |
72 | 97 |
|
| 98 | + |
73 | 99 |
|
74 |
| -- **Step 4:** Restart your container |
| 100 | +--- |
75 | 101 |
|
| 102 | +- **Step 3:** Restart your container. |
76 | 103 |
|
77 | 104 | ## PHP extensions
|
| 105 | + |
78 | 106 | PHP extensions of PHP version 8.3:
|
| 107 | + |
79 | 108 | ```bash
|
80 | 109 | Core, date, libxml, openssl, pcre, zlib, filter, hash, json, random, Reflection, SPL, session, standard, sodium, cgi-fcgi, mysqlnd, PDO, psr, xml, bcmath, calendar, ctype, curl, dom, mbstring, FFI, fileinfo, ftp, gd, gettext, gmp, iconv, igbinary, imagick, imap, intl, ldap, exif, memcache, mongodb, msgpack, mysqli, odbc, pcov, pdo_mysql, PDO_ODBC, pdo_pgsql, pdo_sqlite, pgsql, Phar, posix, ps, pspell, readline, shmop, SimpleXML, soap, sockets, sqlite3, sysvmsg, sysvsem, sysvshm, tokenizer, xmlreader, xmlwriter, xsl, zip, mailparse, memcached, inotify, maxminddb, protobuf, Zend OPcache
|
81 | 110 | ```
|
82 |
| -Small differences in the extensions between the PHP versions |
| 111 | + |
| 112 | +Small differences in the extensions between the PHP versions. |
83 | 113 |
|
84 | 114 | ## License
|
85 |
| -[MIT](https://choosealicense.com/licenses/mit/) |
| 115 | + |
| 116 | +[MIT License](https://choosealicense.com/licenses/mit/) |
86 | 117 |
|
87 | 118 | Originally forked and edited from https://gitlab.com/tenten8401/pterodactyl-nginx
|
0 commit comments