In order to check, if the nginx conf is the issue, you can use the following curl: curl --insecure -H 'Content-Length: 10000000'
https://127.0.0.1/. If there is an immediate answer "413 Request Entity Too Large", then you nginx config is wrong. Further details are coming later.