Skip to content

Instantly share code, notes, and snippets.

@darragh
Created November 2, 2012 23:46
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save darragh/4005064 to your computer and use it in GitHub Desktop.
Save darragh/4005064 to your computer and use it in GitHub Desktop.
[ec2-user@ip-10-28-184-169 ~]$ cat /tmp/passenger-standalone.1680/config
#####################################################
#
# !!!!!!! WARNING, READ THIS !!!!!!!
#
#
# The fact that Phusion Passenger uses Nginx
# internally is considered to be an implementation
# detail that the user should not bother with.
# We may arbitrarily replace the Nginx core with
# something else in the future.
#
# As such, we do not support any kind of custom
# Nginx configuration in Phusion Passenger Standalone.
# If you need additional Nginx modules or if you need
# special Nginx configuration or whatever then you
# should use Phusion Passenger for Nginx, NOT
# Phusion Passenger Standalone.
#
# You are strongly discouraged from editing this file
# and treating Phusion Passenger Standalone as an easy
# way to start Nginx. We will not provide any support
# for this.
#
#####################################################
master_process on;
worker_processes 1;
daemon on;
error_log '/var/app/support/logs/passenger.log' ;
pid '/var/app/support/pids/passenger.pid';
user webapp webapp;
events {
worker_connections 1024;
}
http {
log_format debug '[$time_local] $msec "$request" $status conn=$connection sent=$bytes_sent body_sent=$body_bytes_sent';
include '/usr/share/ruby/1.9/gems/1.9.1/gems/passenger-3.0.17/resources/mime.types';
passenger_ruby /usr/bin/ruby1.9;
passenger_root '/var/lib/passenger-standalone/3.0.17-x86_64-ruby1.9.3-linux-gcc4.4.6-1002/support';
passenger_abort_on_startup_error on;
passenger_user_switching off;
passenger_max_pool_size 6;
passenger_min_instances 1;
passenger_default_user webapp;
default_type application/octet-stream;
client_max_body_size 50m;
access_log off;
keepalive_timeout 60;
gzip on;
gzip_comp_level 3;
gzip_min_length 150;
gzip_proxied any;
gzip_types text/plain text/css application/javascript application/x-javascript;
server {
listen 0.0.0.0:80;
server_name _;
root '/var/app/current/public';
passenger_enabled on;
rails_env production;
passenger_spawn_method smart-lv2;
passenger_min_instances 1;
}
passenger_pre_start http://0.0.0.0:80;
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment