|Robert @ Tech Addressed 34b63400da
A bash script and accompanying configuration files for setting up a Nginx webserver on Debian / Ubuntu based systems. The following services are installed as part of this script:
The configuration files accompanying the setup script are modified to my own preferred defaults - such as but not limited to:
- Number of Nginx Workers 1024
- Set the max body size 8GB
- Set the PHP RAM limit 256MB
- Optional config files to configure real IP if behind a reverse proxy
I've included example files in the /etc/nginx/sites-available directory that are "better" than the standard default that comes with Nginx.
This script is tested and known to work with both Debian 12 and Ubuntu 22.04.
git clone https://gitea.techaddressed.com/robert/setup-nginx-webserver.git
As part of the script execution, you'll need to step through the mysql_secure_installation process.
If you need more detailed directions, refer to this tutorial for additional info.