Sha256: a51cb234e6d62fc184083d4b44ac9c4f4c1fb8288ed3b3ddd0bcad4025a85083
Contents?: true
Size: 1.57 KB
Versions: 1
Compression:
Stored size: 1.57 KB
Contents
# template from http://unicorn.bogomips.org/examples/nginx.conf user nobody nobody; worker_processes 1; pid /tmp/nginx.pid; error_log /tmp/nginx.error.log; events { worker_connections 2048; accept_mutex off; use epoll; } http { include mime.types; default_type application/octet-stream; access_log /tmp/nginx.access.log combined; sendfile on; tcp_nopush on; tcp_nodelay on; keepalive_timeout 5; client_max_body_size 100M; index index.xhtml index.html index.htm; gzip on; gzip_http_version 1.0; gzip_proxied any; gzip_min_length 500; gzip_disable "MSIE [1-6]\."; gzip_types text/plain text/html text/xml text/css text/comma-separated-values text/javascript application/x-javascript application/javascript application/xhtml+xml application/atom+xml; upstream unicorn { server 127.0.0.1:8080 fail_timeout=0; server unix:/tmp/unicorn.sock fail_timeout=0; } server { listen 80; server_name _; root /dev/null; location / { proxy_set_header X-Real-IP $remote_addr; proxy_set_header X-Forwarded-For $proxy_add_x_forwarded_for; proxy_set_header Host $http_host; proxy_redirect off; if (!-f $request_filename) { proxy_pass http://unicorn; break; } } } }
Version data entries
1 entries across 1 versions & 1 rubygems
Version | Path |
---|---|
source-tools-0.6.1 | lib/source-tools/templates/tnginx-for-unicorn.conf.erb |