Sha256: 567bbb2688f9789a22f2c61b19355340eea2947181fb140b9979a0167ac9dd9c

Contents?: true

Size: 1.67 KB

Versions: 6

Compression:

Stored size: 1.67 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 {

	##
	# 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;
	# 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

6 entries across 6 versions & 1 rubygems

Version Path
pvcglue-0.1.10 lib/pvcglue/templates/lb.nginx.conf.erb
pvcglue-0.1.9 lib/pvcglue/templates/lb.nginx.conf.erb
pvcglue-0.1.8 lib/pvcglue/templates/lb.nginx.conf.erb
pvcglue-0.1.7 lib/pvcglue/templates/lb.nginx.conf.erb
pvcglue-0.1.6 lib/pvcglue/templates/lb.nginx.conf.erb
pvcglue-0.1.5 lib/pvcglue/templates/lb.nginx.conf.erb