What is the maximum file size we can upload on discourse?

Sorry for bumping this topic. I tried everything to change max upload size but my instance allows only 1 (one) mb to attach. I played with 10, 20mb and defaults.

I got client_max_body_size 100m;:

1. using custom command `sed -i 's/client_max_body_size 10m;/client_max_body_size 100m;/g' /etc/nginx/conf.d/discourse.conf`
2. using param `upload_size: 100m` in app.yml
3. by hands inside the container

1 and 2 - I rebuilt app, 3 - reload nginx inside container.

This is a fresh installation, only official plugins. Custom things are: Office 365 login and self-signed certificate (because the server is located inside intranet, and Office 365 login requires https). Everything works: login, emailing, answering by email. But attachment size is about 1 mb max (both files and pictures). I allow * for filetypes. I have external proxy Nginx with the same setting om 100mb body size.

I really confused. I’ve been using Discourse for 4 years. Do I have incorrect settings or conflicts? Could somebody navigate me what to check first please?