Add `NGINX_X_ACCEL_REDIRECT` setting. Check this instead of `DEBUG` when deciding to use the `X-Accel-Redirect` header.
Merge branch 'no-nginx' into production