first there is this jewel: the best explication for nginx configuration and i’ve found that it will be better to compile the source only with what we’ll need! so my questions are simple:
Which are modules that will only need when compiling Nginx when it will used only to serve static file.
Is it useful to make compile with the SSL support? or let only Tornado handle the SSL?
How about using Tornado to handle open connection and Nginx Timeout configurations values ( client_body_timeout, client_header_timeout, keepalive_timeout ) will they be bigger or smaller values ???
sorry for my english.
The easiest and most reliable method will be to use nginx as a reverse proxy for tornado. Have nginx handle all the frontend connections, as well as SSL. This will also allow you to run multiple tornado processes (up to # of CPU cores) if you need more processing power.
Any other configuration will depend on your specific application.
So I would just start by adding
--with-http_ssl_module.You can see all the configure options with
./configure --help. If you want to remove more of the standard modules, you can figure out what you need by process of elimination – most of the--without-*options (other than proxy) could probably be used in your case. It’s really up to you, and what you want to use.