Skip to content

Instantly share code, notes, and snippets.

View cryptojuice's full-sized avatar

Nick Robinson cryptojuice

  • Intuit
  • New York, NY
View GitHub Profile
@cryptojuice
cryptojuice / gist:7670226
Created November 27, 2013 03:24
Simple nginx configuration. proxy to gunicorn.
user nobody nogroup;
worker_processes 1;
pid /var/run/nginx.pid;
error_log /var/log/nginx/error.log;
events {
worker_connections 1024;
accept_mutex off;
}
@cryptojuice
cryptojuice / A-Pen-by-Nick-Robinson.markdown
Created August 27, 2013 04:10
A Pen by Nick Robinson.

Flask + uWSGI + nginx Primer

I've been having trouble with serving a Flask app via uWSGI and nginx, so I thought I'd put together some of the basics to help out others.

How this shit works

  • Flask is managed by uWSGI.
  • uWSGI talks to nginx.