{"repo":"denji/nginx-tuning","free":true,"listed":false,"github":"https://github.com/denji/nginx-tuning","clone":"git clone https://github.com/denji/nginx-tuning.git","description":"NGINX tuning for best performance","language":null,"stars":2702,"topics":["nginx","tuning","security","best-practices","details"],"license":"MIT","category":"security-tools","readme_excerpt":"NGINX Tuning For Best Performance ================================= For this configuration you can use web server you like, I decided, because I work mostly with it to use nginx. Generally, properly configured nginx can handle up to 400K to 500K requests per second (clustered). Most what I saw is 50K to 80K (non-clustered) requests per second and 30% CPU load, of course, this was 2 x Intel Xeon with HyperThreading enabled, but it can work without problem on slower machines. You must understand that this config is used in a testing environment and not in production, so you will need to find a way to implement most of those features as best possible for your servers. Stable version NGINX (deb/rpm) Mainline version NGINX (deb/rpm) First, you will need to install nginx Backup your original configs and you can start reconfigure your configs. You will need to open your nginx.conf at /etc/nginx/nginx.conf with your favorite editor. Now you can save the configuration and run the below command If you wish to test the configuration first you can run Just For Security Reasons ------------------------ NGINX Simple DDoS Defense ------------------------- This is far away from a secure DDoS defense but can slow down some small DDoS. This configuration is for a testing environment and you should use your own values. Now you can test the configuration again And then reload or restart your nginx You can test this configuration with tsung and when you are satisfied with the result you can hit C","default_branch":null,"files":null,"tree":[],"storefront":"/r/denji","claimed":false,"request_supported":{"post":"https://gitbuyer.com/r/denji/nginx-tuning/request-supported","requests":0},"note":"indexed from public GitHub; nothing is for sale on this page. Clone it from GitHub. Paid listings live at /search."}