Closed hess8 closed 2 years ago
This is all handled in the nginx configuration https://github.com/LycheeOrg/Lychee-Docker#advanced-configuration
Thanks for your help.
OK, I did put nginx.conf with client_max_body_size increased.
The error is "PHP post_max_size limit is too small". Also, I don't have nginx installed on this machine, so I don't think nginx is limiting the size, unless somehow docker uses nginx code I don't know about.
On Fri, Oct 29, 2021 at 12:54 PM Martin Stone @.***> wrote:
This is all handled in the nginx configuration https://github.com/LycheeOrg/Lychee-Docker#advanced-configuration
— You are receiving this because you authored the thread. Reply to this email directly, view it on GitHub https://github.com/LycheeOrg/Lychee-Docker/issues/109#issuecomment-954974860, or unsubscribe https://github.com/notifications/unsubscribe-auth/AAVW7WFGL2JMW3HGL4OK7CTUJL3YBANCNFSM5G742UVA . Triage notifications on the go with GitHub Mobile for iOS https://apps.apple.com/app/apple-store/id1477376905?ct=notification-email&mt=8&pt=524675 or Android https://play.google.com/store/apps/details?id=com.github.android&referrer=utm_campaign%3Dnotification-email%26utm_medium%3Demail%26utm_source%3Dgithub.
Is there a way to get detailed logs of where lychee/docker pulls the value of post_max_size? docker-compose logs don't have much detail.
On Sat, Oct 30, 2021 at 9:04 AM Bret Hess @.***> wrote:
Thanks for your help.
OK, I did put nginx.conf with client_max_body_size increased.
The error is "PHP post_max_size limit is too small". Also, I don't have nginx installed on this machine, so I don't think nginx is limiting the size, unless somehow docker uses nginx code I don't know about.
On Fri, Oct 29, 2021 at 12:54 PM Martin Stone @.***> wrote:
This is all handled in the nginx configuration https://github.com/LycheeOrg/Lychee-Docker#advanced-configuration
— You are receiving this because you authored the thread. Reply to this email directly, view it on GitHub https://github.com/LycheeOrg/Lychee-Docker/issues/109#issuecomment-954974860, or unsubscribe https://github.com/notifications/unsubscribe-auth/AAVW7WFGL2JMW3HGL4OK7CTUJL3YBANCNFSM5G742UVA . Triage notifications on the go with GitHub Mobile for iOS https://apps.apple.com/app/apple-store/id1477376905?ct=notification-email&mt=8&pt=524675 or Android https://play.google.com/store/apps/details?id=com.github.android&referrer=utm_campaign%3Dnotification-email%26utm_medium%3Demail%26utm_source%3Dgithub.
The PHP limits are set from the nginx config. Yes, there is nginx in the container.
Thanks for your responses. I never could get a docker install to get the php settings recognized. I finally did get an install working with the limits I wanted with git clone, nginx manual config and php-fpm. The most organized description of what to do was https://www.tecmint.com/lychee-photo-management-system-for-linux/
I mean, it was all in the link I posted above, but ok.
I've done all I can think of to get the max file and post sizes to change (hrs...).
Lychee is stuck at 100M limits DB Version: 4.3.4 System: Linux PHP Version: 7.4 Max uploaded file size: 100M Max post size: 100M
I've changed the sizes to 1024M in php.ini and another php_uploads.ini to conf/
As seen in a grep (same for max_upload_filesize), the .ini files have the right values:
..but the container is stuck at an 8M limit , even though Inspect says it's binding to these php.ini files I'm working with. So somehow Lychee is ignoring my settings (higher) and the container settings (way too low)
How can I get my settings into Lychee? Is 100M somehow fixed in the code?
FYI here is my minimal docker-compose file: