I've just finished installing the Plone full-stack setup using the Ansible Playbook as documented here:
The Plone versioning information is as follows:
Plone 18.104.22.168 (5112)
Python 2.7.15rc1 (default, Nov 12 2018, 14:31:15) [GCC 7.3.0]
PIL 4.3.0 (Pillow)
This was installed on Ubuntu Server 18.04.2, with packages brought up to date using apt update and apt upgrade before beginning. nginx is version 1.14.0.
Since installing, all configuration steps taken were done through the Plone interface and were limited to adding an admin user, setting up e-mail, and setting the security settings.
As a next step, I attempted to upload the five themes pointed to here:
I downloaded them from the git sites as zip files and went into the Plone control panel, then Theming, and selected to upload a theme. Upon selecting one of the zip files in the file browser and telling it to upload, I encountered this error:
413 Request Entity Too Large
Since this appears to be an nginx error, I began by troubleshooting nginx itself. I attempted to add the following setting to /etc/nginx/nginx.conf:
...and not only tried restarting nginx, but rebooting the whole server with no change in behaviour. (Note: I'm testing with the smallest of the theme files, which is less than 4MB.)
I then tried setting it to this:
....which is supposed to disable checking entirely.
Further googling hasn't yielded any more help. The only advice I could come up with was to change it in the PHP config also (AFAIK this isn't using PHP, and I don't seem to have PHP installed) or that the setting above is sometimes ignored in nginx versions below 1.07 (I'm using 1.14.0) or over SSL (I'm not using SSL yet).
I'm asking here instead of an nginx forum now because I'm wondering if part of the issue could be that the full-stack install is launching nginx using a config file found elsewhere, but so far my searching has not turned any such thing up.
Anyone know how to solve this? I assume others have set up Plone using the Ansible Playbook and then later tried to upload a theme.