Created
July 15, 2014 14:11
-
-
Save tim-peterson/eb180321a079acc21355 to your computer and use it in GitHub Desktop.
localhost nginx.conf
This file contains hidden or 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 www; | |
worker_processes 5; | |
events { | |
worker_connections 1024; | |
} | |
http { | |
include /Applications/MNPP/conf/nginx/mime.types; | |
default_type application/octet-stream; | |
sendfile on; | |
keepalive_timeout 65; | |
upstream uwsgiapps { | |
server unix:/Applications/MNPP/tmp/uwsgi.sock; | |
server 127.0.0.1:9001; | |
} | |
#include /Applications/MNPP/conf/nginx/sites-enabled/*; | |
include /Applications/MNPP/conf/nginx/sites-enabled/app2; | |
include /Applications/MNPP/conf/nginx/sites-enabled/app1; | |
gzip on; | |
#gzip_static on; | |
#gzip_http_version 1.0; | |
gzip_disable "msie6"; | |
gzip_vary on; | |
gzip_proxied any; | |
#gzip_comp_level 2; | |
gzip_comp_level 6; | |
gzip_buffers 16 8k; | |
gzip_http_version 1.1; | |
gzip_types text/plain text/css application/json application/javascript text/xml application/xml application/xml+rss text/javascript application/x-font-ttf application/x-font-opentype application/vnd.ms-fontobject image/svg+xml image/x-icon; | |
#application/x-javascript | |
proxy_buffer_size 128k; | |
proxy_buffers 4 256k; | |
proxy_busy_buffers_size 256k; | |
fastcgi_buffers 16 16k; | |
fastcgi_buffer_size 32k; | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment