|
@@ -0,0 +1,45 @@
|
|
|
|
+# This file is based on /usr/local/nginx/conf/nginx.conf.default.
|
|
|
|
+
|
|
|
|
+# One worker process per core
|
|
|
|
+worker_processes auto;
|
|
|
|
+
|
|
|
|
+events {
|
|
|
|
+ # This may need to be increased for the high-concurrency plaintext test.
|
|
|
|
+ worker_connections 1024;
|
|
|
|
+}
|
|
|
|
+
|
|
|
|
+http {
|
|
|
|
+ include /usr/local/nginx/conf/mime.types;
|
|
|
|
+ default_type application/octet-stream;
|
|
|
|
+
|
|
|
|
+ # turn off request logging for performance
|
|
|
|
+ access_log off;
|
|
|
|
+
|
|
|
|
+ # I think these only options affect static file serving
|
|
|
|
+ sendfile on;
|
|
|
|
+ tcp_nopush on;
|
|
|
|
+
|
|
|
|
+ # Allow many HTTP Keep-Alive requests in a single TCP connection before
|
|
|
|
+ # closing it (the default is 100). This will minimize the total number
|
|
|
|
+ # of TCP connections opened/closed. The problem is that this may cause
|
|
|
|
+ # some worker processes to be handling too connections relative to the
|
|
|
|
+ # other workers based on an initial imbalance, so this is disabled for
|
|
|
|
+ # now.
|
|
|
|
+# keepalive_requests 1000;
|
|
|
|
+
|
|
|
|
+ #keepalive_timeout 0;
|
|
|
|
+ keepalive_timeout 65;
|
|
|
|
+
|
|
|
|
+ server {
|
|
|
|
+ # For information on deferred, see:
|
|
|
|
+ # http://nginx.org/en/docs/http/ngx_http_core_module.html#listen
|
|
|
|
+ # http://www.techrepublic.com/article/take-advantage-of-tcp-ip-options-to-optimize-data-transmission/
|
|
|
|
+ listen 8080 default_server deferred;
|
|
|
|
+ server_name localhost;
|
|
|
|
+
|
|
|
|
+ location / {
|
|
|
|
+ uwsgi_pass unix:/tmp/uwsgi.sock;
|
|
|
|
+ include /usr/local/nginx/conf/uwsgi_params;
|
|
|
|
+ }
|
|
|
|
+ }
|
|
|
|
+}
|