I'm trying out IndigoStack with Craft CMS. Feels nice to have fast dev work on a Mac again.
Overall everything installed and works. I ran into my first real issue trying to upload files in the control panel of Craft. As far as I can tell, it's related to Nginx.
The error on upload: 413 Request Entity Too Large
The file in question is 2MB.
PHP is configured as:
memory_limit = 512M
max_execution_time = 180
upload_max_filesize = 10M
post_max_size = 15M
I've updated the config for nginx by following some guidance here in the community and the advanced configuration docs. My process was to find the stacks random ID folders in .indigo/stacks/####/nginx_####/conf/nginx.conf
, copy it, modify it to have client_max_body_size = 10M
, and then move it into documents/Indigo/stack.indigostack/nginx_####
. When I use localhost with my port, no problems it now works, so it looks like my stack is updated. But when I'm using the domain.test with system stack's nginx reverse proxy, I lose that config setting. Should I try to override the system stack or am I missing something with order of operations here?
My stack is Nginx, PHP 8.1, and MySQL 8. Configuring PHP with the overrides textarea in the app was a breeze. Would be nice to have something like that for nginx, and the system stack nginx, but I can see why it would be trickier with nginx's contexts closures.