Nginx web server egg with PHP, optional Wordpress installation and git support.
egg-nginx.json
)The "www" folder is used as a public folder. There you can add your PHP, HTML, CSS, JS and so on files that are required for the public or for the operation of the site.
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:
Go to the file:
/home/container/nginx/conf.d/default.conf
Change "listen" to:
listen <YOUR_PORT> ssl;
Please also change the spacer distance. Otherwise the "listen" will be overwritten each time the egg is restarted.
Add the following lines:
ssl_certificate /home/container/your_cert.crt;
ssl_certificate_key /home/container/your_cert_key.key;
ssl_protocols TLSv1.2 TLSv1.3;
ssl_ciphers HIGH:!aNULL:!MD5;
Adjust the lines accordingly.
Furthermore, if not already done, adjust to your domain:
server_name www.example.com;
Changing the PHP version is currently still somewhat cumbersome. A revised version will be available in the future.
PHP extensions of PHP version 8.3:
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
Small differences in the extensions between the PHP versions.
Originally forked and edited from https://gitlab.com/tenten8401/pterodactyl-nginx