raise file limit to something more web scale, but lower connections so
authortedu <tedu@openbsd.org>
Fri, 18 Apr 2014 20:22:17 +0000 (20:22 +0000)
committertedu <tedu@openbsd.org>
Fri, 18 Apr 2014 20:22:17 +0000 (20:22 +0000)
there are some files to spare for other things.

usr.sbin/nginx/conf/nginx.conf

index 8c7ba3f..d6cfc0b 100644 (file)
@@ -1,4 +1,4 @@
-# $OpenBSD: nginx.conf,v 1.18 2014/03/27 10:40:42 sthen Exp $
+# $OpenBSD: nginx.conf,v 1.19 2014/04/18 20:22:17 tedu Exp $
 
 # Take note of http://wiki.nginx.org/Pitfalls
 
@@ -14,9 +14,9 @@ worker_processes  1;
 
 #pid        logs/nginx.pid;
 
-
+worker_rlimit_nofile 1024;
 events {
-    worker_connections  1024;
+    worker_connections  800;
 }