Currently the MediaWiki default for $wgMaxUploadSize is 100M, but in effect our Wikibase image limits to 1M uploads. The reason for this is the PHP setup in our Wikibase image defaults to 2M uploads limit, and our the Nginx reverse proxy above that has a default limit of 1M.
There are several solutions to this issue, a couple of those options are outlined below:
- Both of these intermediate layers can be set to match the 100M limit of MediaWiki, but doing so requires adding an external .conf file to nginx-proxy in a location like example/config/nginx-proxy.conf, and either updating the Wikibase image or also mapping a PHP ini file with the updated settings there (e.g. example/config/wikibase-php.ini).
- We add a $wgMaxUploadSize=1M to the LocalSettings.php file which the Wikibase image generates to match what the upper layers are supporting, and add a comment to guide the user with a note that the PHP and nginx-proxy limit also needs to be increased if this value is changed.