Skip to content

Instantly share code, notes, and snippets.

@andrehjr
Created December 11, 2010 00:55
Show Gist options
  • Save andrehjr/737043 to your computer and use it in GitHub Desktop.
Save andrehjr/737043 to your computer and use it in GitHub Desktop.
my nginx conf
#user staff;
worker_processes 1;
error_log logs/error.log;
#error_log logs/error.log notice;
#error_log logs/error.log info;
pid logs/nginx.pid;
events {
worker_connections 1024;
}
http {
passenger_root /Users/andrehjr/.rvm/gems/ruby-1.9.2-p0/gems/passenger-3.0.0;
passenger_ruby /Users/andrehjr/.rvm/wrappers/ruby-1.9.2-p0/ruby;
include mime.types;
default_type application/octet-stream;
sendfile on;
keepalive_timeout 65;
gzip on;
server {
passenger_enabled on;
listen 443;
server_name localhost;
root /Users/andrehjr/dev/work/hp/public;
index 404.html;
ssl on;
ssl_certificate /opt/nginx/conf/ssl/app.crt;
ssl_certificate_key /opt/nginx/conf/ssl/app.key;
keepalive_timeout 60;
}
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment