Rewrite nginx config promise, and add a client_max_body_size directive