HTTP POST works but does not return until nginx timeout

504 error when using the api to add users via the curl example. iI will add the user in miab, but it dos not return until nginx times out and I receive a 504 error. Any help would be greatly apprciated.