Created
December 13, 2013 12:15
-
-
Save angelbotto/7943428 to your computer and use it in GitHub Desktop.
perfect nginx.conf for padrino :)
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 2; | |
worker_priority -5; | |
error_log /var/www/landmoda/log/nginx.error.log crit; | |
events { | |
# use epoll; | |
worker_connections 1024; | |
} | |
http { | |
client_max_body_size 25m; | |
client_body_buffer_size 128k; | |
client_body_temp_path /tmp/client_body_temp; | |
passenger_root /home/ubuntu/.rvm/gems/ruby-2.0.0-p353/gems/passenger-4.0.28; | |
passenger_ruby /home/ubuntu/.rvm/wrappers/ruby-2.0.0-p353/ruby; | |
passenger_pool_idle_time 0; | |
passenger_max_pool_size 15; | |
include mime.types; | |
default_type application/octet-stream; | |
server_tokens off; | |
sendfile on; | |
keepalive_timeout 70; | |
gzip on; | |
gzip_http_version 1.1; | |
gzip_disable "msie6"; | |
gzip_vary on; | |
gzip_min_length 1100; | |
gzip_buffers 64 8k; | |
gzip_comp_level 3; | |
gzip_proxied any; | |
gzip_types text/plain text/css application/x-javascript text/xml application/xml; | |
server { | |
listen 80; | |
server_name landmoda.com; | |
passenger_enabled on; | |
root /var/www/landmoda/public; | |
rack_env production; | |
location ~* \.(eot|ttf|woff)$ { | |
add_header Access-Control-Allow-Origin *; | |
} | |
access_log /dev/null; | |
error_log /dev/null; | |
} | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment