Revert "Add `NGINX_X_ACCEL_REDIRECT` setting. Check this instead of `DEBUG` when deciding to use the `X-Accel-Redirect` header."

This reverts commit 736847a4d80f3031200256ba6e1e8c0189730e96.
Set nginx settings in sqlite file too, for tests.