Sha256: d6c06ef7d1e7999cc37c8fe287c6b41a780d2a2769f2c1064ea9a438994572d8

Contents?: true

Size: 1.99 KB

Versions: 17

Compression:

Stored size: 1.99 KB

Contents

user www-data;

# TODO:  Should be set to the same as `grep processor /proc/cpuinfo | wc -l`
worker_processes 1;

pid /var/run/nginx.pid;

events {
	worker_connections 768;
	# multi_accept on;
}

http {

 	# Timeouts
 	client_header_timeout <%= Pvcglue.cloud.client_header_timeout %>;
 	client_body_timeout <%= Pvcglue.cloud.client_body_timeout %>;
 	proxy_read_timeout <%= Pvcglue.cloud.proxy_read_timeout %>;
 	proxy_send_timeout <%= Pvcglue.cloud.proxy_send_timeout %>;

	##
	# Basic Settings
	##

	sendfile on;
	tcp_nopush on;
	tcp_nodelay on;
	keepalive_timeout 65;
	types_hash_max_size 2048;
	# server_tokens off;

	server_names_hash_bucket_size 64;
 	client_max_body_size <%= Pvcglue.cloud.client_max_body_size %>;
	# server_name_in_redirect off;

	include /etc/nginx/mime.types;
	default_type application/octet-stream;

	##
	# Logging Settings
	##

	access_log /var/log/nginx/access.log;
	error_log /var/log/nginx/error.log;

	##
	# Gzip Settings
	##

	gzip on;
	gzip_disable "msie6";

	# gzip_vary on;
	# gzip_proxied any;
	# gzip_comp_level 6;
	# gzip_buffers 16 8k;
	# gzip_http_version 1.1;
	# gzip_types text/plain text/css application/json application/x-javascript text/xml application/xml application/xml+rss text/javascript;

	##
	# nginx-naxsi config
	##
	# Uncomment it if you installed nginx-naxsi
	##

	# include /etc/nginx/naxsi_core.rules;

	##
	# Phusion Passenger config
	##
	# Uncomment it if you installed passenger or passenger-enterprise
	##

  # passenger_root /usr/lib/ruby/vendor_ruby/phusion_passenger/locations.ini;
  # passenger_ruby /home/deploy/.rvm/gems/ruby-2.0.0-p353/wrappers/ruby;
	# passenger_ruby /usr/bin/ruby;

	##
	# Virtual Host Configs
	##

  # disable the default server
  #server {
  #    listen      80;
  #    server_name _;
  #    return      444;
  #}

  # DoS prevention
  limit_conn_zone $binary_remote_addr zone=conn_limit_per_ip:10m;
  limit_req_zone $binary_remote_addr zone=req_limit_per_ip:10m rate=1r/s;

	include /etc/nginx/conf.d/*.conf;
	include /etc/nginx/sites-enabled/*;
}

Version data entries

17 entries across 17 versions & 1 rubygems

Version Path
pvcglue-0.1.28 lib/pvcglue/templates/lb.nginx.conf.erb
pvcglue-0.1.27 lib/pvcglue/templates/lb.nginx.conf.erb
pvcglue-0.1.26 lib/pvcglue/templates/lb.nginx.conf.erb
pvcglue-0.1.25 lib/pvcglue/templates/lb.nginx.conf.erb
pvcglue-0.1.24 lib/pvcglue/templates/lb.nginx.conf.erb
pvcglue-0.1.23 lib/pvcglue/templates/lb.nginx.conf.erb
pvcglue-0.1.22 lib/pvcglue/templates/lb.nginx.conf.erb
pvcglue-0.1.21 lib/pvcglue/templates/lb.nginx.conf.erb
pvcglue-0.1.20 lib/pvcglue/templates/lb.nginx.conf.erb
pvcglue-0.1.19 lib/pvcglue/templates/lb.nginx.conf.erb
pvcglue-0.1.18 lib/pvcglue/templates/lb.nginx.conf.erb
pvcglue-0.1.17 lib/pvcglue/templates/lb.nginx.conf.erb
pvcglue-0.1.15 lib/pvcglue/templates/lb.nginx.conf.erb
pvcglue-0.1.14 lib/pvcglue/templates/lb.nginx.conf.erb
pvcglue-0.1.13 lib/pvcglue/templates/lb.nginx.conf.erb
pvcglue-0.1.12 lib/pvcglue/templates/lb.nginx.conf.erb
pvcglue-0.1.11 lib/pvcglue/templates/lb.nginx.conf.erb