I think the image max size 102400kb(100M) is hard coded in Discourse by design. The upload_size
in app.yml is for configuring the nginx, you may want to configure the max attachment size kb
setting which allows file size max to 1024000kb(1GB).
A 500MB image file rendered directly on the web page is horrible.