This proxy renders pages according to the AJAX crawl specification.
virtualenv env env/bin/pip install -r requrements.txt
npm install phantomjs
env/bin/uwsgi --ini app.ini --http localhost:8080
env/bin/uwsgi --ini app.ini --http localhost:8080 --honour-stdin
location / {
include proxy_params;
if ($args ~* _escaped_fragment_) {
# this is escaped-fragment-proxy
proxy_pass localhost:8080;
}
# a backend, for handling usual load
proxy_pass http://localhost:8000;
}