zackad / manga-server

Serve your manga collection over network.
MIT License
3 stars 0 forks source link

Configure php memory limit via env variable #214

Closed zackad closed 9 months ago

zackad commented 9 months ago

Allow user to define their own memory limit for php process when generating cover thumbnail. When running under docker container, there is an issue with memory consumtion that significantly higher compared to non docker runtime (nix based packages).

I have no idea how to debug and fix the problem. The hardcoded memory limit still not enough for my use case. With this feature, I can increase the limit without modifying application code and redeploy the app. Just edit APP_MEMORY_LIMIT env variable and clear the cache.

codecov[bot] commented 9 months ago

Codecov Report

All modified and coverable lines are covered by tests :white_check_mark:

Comparison is base (226f5b4) 100.00% compared to head (ce1a392) 100.00%.

Additional details and impacted files ```diff @@ Coverage Diff @@ ## master #214 +/- ## =========================================== Coverage 100.00% 100.00% Complexity 84 84 =========================================== Files 14 14 Lines 379 379 =========================================== Hits 379 379 ```

:umbrella: View full report in Codecov by Sentry.
:loudspeaker: Have feedback on the report? Share it here.