auto add X-Accel-Redirect in production