diff --git a/README.md b/README.md index 41214b5da..06bf80d4d 100644 --- a/README.md +++ b/README.md @@ -1,11 +1,9 @@ to prepare a new host: ``` -sudo apt-get install software-properties-common -sudo apt-add-repository -y ppa:nginx/stable sudo apt-get update -sudo apt-get install -y git python-virtualenv python-dev phantomjs libjpeg8 libjpeg62-dev libfreetype6 libfreetype6-dev libevent-dev -sudo apt-get install -y nginx-full +sudo apt-get install -y git python-virtualenv python-dev phantomjs libjpeg8 libjpeg62-dev libfreetype6 libfreetype6-dev libevent-dev gdebi-core +sudo gdebi --n binary_dependencies/*.deb ``` check out the code: @@ -20,7 +18,7 @@ pip install -r requirements.txt running: ``` -sudo mkdir -p /mnt/nginx/ && sudo nginx -c `pwd`/nginx.conf +sudo mkdir -p /mnt/nginx/ && sudo /usr/local/nginx/sbin/nginx -c `pwd`/nginx.conf STACK=prod gunicorn -c gunicorn_config.py application:application ``` diff --git a/binary_depdencies/nginx_1.4.2-nobuffer-1_amd64.deb b/binary_depdencies/nginx_1.4.2-nobuffer-1_amd64.deb new file mode 100644 index 000000000..b1e1208fe Binary files /dev/null and b/binary_depdencies/nginx_1.4.2-nobuffer-1_amd64.deb differ diff --git a/nginx-staging.conf b/nginx-staging.conf index 71085488c..8fc2389f2 100644 --- a/nginx-staging.conf +++ b/nginx-staging.conf @@ -72,6 +72,9 @@ http { proxy_redirect off; proxy_buffering off; + proxy_request_buffering off; + proxy_set_header Transfer-Encoding $http_transfer_encoding; + proxy_pass http://app_server; proxy_read_timeout 2000; proxy_temp_path /mnt/nginx/proxy_temp 1 2; diff --git a/nginx.conf b/nginx.conf index 5b2d88f1d..c42edb1a4 100644 --- a/nginx.conf +++ b/nginx.conf @@ -70,6 +70,9 @@ http { proxy_redirect off; proxy_buffering off; + proxy_request_buffering off; + proxy_set_header Transfer-Encoding $http_transfer_encoding; + proxy_pass http://app_server; proxy_read_timeout 2000; proxy_temp_path /mnt/nginx/proxy_temp 1 2;