title: How do I use nginx to reverse-proxy an IP camera's mjpeg stream?
body: <p>I'm using nginx on OpenWRT to reverse-proxy a motion-jpeg feed from an IP camera, but I'm experiencing lag of up to 10-15 seconds, even at quite low frame sizes and rates. With the OpenWRT device removed from the path, the camera can be accessed with no lag at all.</p>
  
  <p>Because of the length of the delay (and the fact that it grows with time), this looks like some kind of buffering/caching issue. I have already set <code>proxy_buffering off</code>, but is there something else I should be watching out for?</p>
  
  <p>Thanks.</p>