puppet-standalone-mashup/shared/additional-modules/nginx/templates/nginx.conf

42 lines
982 B
Nginx Configuration File
Raw Normal View History

2012-01-31 03:14:25 +00:00
user www-data;
worker_processes 4;
error_log /var/log/nginx/error.log;
pid <%= pid_file %>;
events {
worker_connections 1024;
}
http {
include /usr/local/nginx/conf/mime.types;
default_type application/octet-stream;
upstream php {
server unix:/tmp/php-cgi.socket;
server 127.0.0.1:9000;
}
access_log /var/log/nginx/access.log;
sendfile on;
keepalive_timeout 65;
tcp_nodelay on;
gzip on;
gzip_comp_level 2;
gzip_proxied any;
gzip_types text/plain text/html text/css application/x-javascript text/xml
application/xml application/xml+rss text/javascript;
2012-02-12 23:42:29 +00:00
passenger_root /usr/local/ruby/lib/ruby/gems/1.9.1/gems/passenger-<%= version %>;
passenger_ruby /usr/local/ruby/bin/ruby;
2012-02-28 20:07:55 +00:00
passenger_max_pool_size <%= max_pool_size %>;
passenger_max_instances_per_app 2;
2012-02-12 23:42:29 +00:00
2012-01-31 03:14:25 +00:00
include /etc/nginx/fastcgi.conf;
include /etc/nginx/sites-enabled/*;
}