How to configure ngnix settings
To set session timeout value
Modify the config settings in /etc/nginx/nginx.conf
worker_processes 1;
worker_connections 1024;
The worker_processes is best to set as the number of processors (cores) of your server and the recommended worker_connections is 1024. Here is the formula to calculate the number of active client connections an ngnix server can handle.
worker_processes x worker_connections = max number of active client connections