summaryrefslogtreecommitdiff
path: root/templates/nginx.conf.erb
diff options
context:
space:
mode:
authorSilvio Rhatto <rhatto@riseup.net>2010-02-17 20:00:24 -0200
committerSilvio Rhatto <rhatto@riseup.net>2010-02-17 20:00:24 -0200
commit27221720f2fdaaad79c06ea41a9d31276f4bfc5a (patch)
treeec07f90731ca308c32a2e1682f75a731530cc557 /templates/nginx.conf.erb
parentbb81a0b6bfd9fe42d99bcf90e83e7c888c31bac3 (diff)
downloadpuppet-nginx-27221720f2fdaaad79c06ea41a9d31276f4bfc5a.tar.gz
puppet-nginx-27221720f2fdaaad79c06ea41a9d31276f4bfc5a.tar.bz2
Adding nginx.conf for puppetmaster proxy
Diffstat (limited to 'templates/nginx.conf.erb')
-rw-r--r--templates/nginx.conf.erb28
1 files changed, 28 insertions, 0 deletions
diff --git a/templates/nginx.conf.erb b/templates/nginx.conf.erb
new file mode 100644
index 0000000..63f32c5
--- /dev/null
+++ b/templates/nginx.conf.erb
@@ -0,0 +1,28 @@
+user www-data;
+worker_processes <%= worker_processes = 4 %>;
+
+error_log /var/log/nginx/error.log;
+pid /var/run/nginx.pid;
+
+events {
+ worker_connections <%= worker_connections %>;
+}
+
+http {
+ include /etc/nginx/mime.types;
+ default_type application/octet-stream;
+
+ access_log /var/log/nginx/access.log;
+
+ sendfile on;
+ #tcp_nopush on;
+
+ #keepalive_timeout 0;
+ keepalive_timeout 65;
+ tcp_nodelay on;
+
+ gzip on;
+
+ include /etc/nginx/conf.d/*.conf;
+ include /etc/nginx/sites-enabled/*;
+}