413 error with nginx reverse proxy and webdav

I recently was able to fix the 502 error I was getting using the accepted solution here on the forums. Now, with webdav again, I am having problems uploading more than 100MB size files. I’ve tried the solutions I’ve found, most of them have to do with using the client max size command set to 0, but that was already implemented. I tried adding it to outside the server context, as well as inside the server, it doesn’t work. How do you get around this, and where is the 100MB limitation coming from?

It’s not just webdav, I also was not able to upload the file using the android client directly either.

[edit] This is not a seafile problem, but an nginx problem. I used another webdav server and also had the same issue.