Created
February 5, 2015 19:32
-
-
Save angelbotto/5b6f1421688b8098c9de to your computer and use it in GitHub Desktop.
Cheers passenger recipe
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#user nobody; | |
worker_processes 1; | |
events { | |
worker_connections 1024; | |
} | |
http { | |
passenger_root /usr/local/rvm/gems/jruby-1.7.18@cheers/gems/passenger-4.0.58; | |
passenger_ruby /usr/local/rvm/gems/jruby-1.7.18@cheers/wrappers/ruby; | |
passenger_app_env production; | |
include mime.types; | |
default_type application/octet-stream; | |
#log_format main '$remote_addr - $remote_user [$time_local] "$request" ' | |
# '$status $body_bytes_sent "$http_referer" ' | |
# '"$http_user_agent" "$http_x_forwarded_for"'; | |
#access_log logs/access.log main; | |
sendfile on; | |
#tcp_nopush on; | |
#keepalive_timeout 0; | |
keepalive_timeout 65; | |
#gzip on; | |
server { | |
listen 80; | |
server_name api.cheersapp.io; | |
passenger_enabled on; | |
root /var/www/cheersapi/current/public; | |
} | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment