Cherry-picking nginx template from sbadia for 502 page and client_max_body_size tweak