put nginx checks before migrations