Docker compose / Nginx: Cannot add manuals to equipment section #15
I moved this issue to grocy/grocy-docker.
Seems to be the same as #11.
Still not using Docker myself, but I also run grocy exclusively on nginx/PHP-FPM and another nginx in front as a reverse proxy, so here is the full config of https://demo-en.grocy.info - maybe that helps...
I'm not a nginx config expert, but you defined the URL rewriting here:
The following definitely works on all of my installations (see full config above), maybe try changing that... (?)
Quick Addition to the below: Doing
I was having this same issue with the 404 error. After a lot of poking around and binding a volume for the nginx log I determined it seems to be caused by a lack of permissions for /var/tmp/nginx/client_body. I am unsure why this is occurring exactly but what appears to happen is a temp file is created in that directory for file uploads and for whatever reason fails to open. Below is the log line that occurs when an upload happens. The reason for the 404 though is caused by a lack of a 50x.html file which would normally be displayed when the error below occurs. I changed the worker processes to be run as root which seems to be working (though obviously not ideal). I am not great at docker or nginx so I am not entirely sure how to go about resolving this. But hopefully this info assists with it being taken care of. I will continue trying different things to get it working but I don't have a huge amount of time during the week.
The readme currently advises that nginx users put `try_files $uri /index.php$is_args$query_string;` in the location block; this doesn't work (produces 404s) and is also inconsistent with the example nginx configuration at grocy/grocy-docker#15 (comment). This PR changes the README so that it works and is consistent with that configuration.