Skip to content

Instantly share code, notes, and snippets.

@tsabat
Created November 16, 2012 17:07
Show Gist options
  • Save tsabat/4089035 to your computer and use it in GitHub Desktop.
Save tsabat/4089035 to your computer and use it in GitHub Desktop.
worker_processes 4;
events {
worker_connections 1024;
}
http {
include mime.types;
default_type application/octet-stream;
sendfile on;
keepalive_timeout 65;
upstream local_3000 {
server 127.0.0.1:3000;
}
server {
server_name cp.d;
listen 80;
listen 443 default ssl;
send_timeout 3600; # For debugging with breakpoints
#ssl on;
ssl_certificate server.crt;
ssl_certificate_key server.key;
ssl_session_timeout 5m;
ssl_protocols SSLv2 SSLv3 TLSv1;
ssl_ciphers ALL:!ADH:!EXPORT56:RC4+RSA:+HIGH:+MEDIUM:+LOW:+SSLv2:+EXP;
ssl_prefer_server_ciphers on;
access_log /tmp/3000_access.log;
error_log /tmp/3000_error.log;
location / {
proxy_set_header Host $host;
proxy_set_header X-Forwarded-For $proxy_add_x_forwarded_for;
proxy_set_header X-Forwarded-Proto $scheme;
proxy_redirect off;
proxy_pass http://local_3000;
}
}
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment