Een 1MB PDF uploaden, ik krijg « upload is te groot, maximaal is 4MB »

No, as that file size is under the default nginx size limit. However that is a good clue.

The site @Julien_Palard self-hosts has a custom reverse-proxy between Discourse and the browser, so that error is probably coming from a misconfigured reverse proxy.