Want to subscribe to topics you're interested in?
Become a Member

Beta Branch update inc/cpcheck.inc nginxlargefile_fix function

Discussion in 'Centmin Mod Github Commits' started by eva2000, Oct 10, 2017.

  1. eva2000

    eva2000 Administrator Staff Member

    58,904
    12,490
    113
    May 24, 2014
    Brisbane, Australia
    Ratings:
    +19,122
    Local Time:
    12:14 AM
    Nginx 1.31.x
    MariaDB 10.x/11.4+/12.3+
    update inc/cpcheck.inc nginxlargefile_fix function

    - add CLIENTMAXBODYSIZEKB_THRESHOLD='5242880' variable to limit to max 5 gigabyte site for client_max_body_size auto tuning.
    - you can alter CLIENTMAXBODYSIZEKB_THRESHOLD size in kilobytes via persistent config file setting in /etc/centminmod/custom_config.inc

    Continue reading...

    123.09beta01 branch


     
  2. pamamolf

    pamamolf Well-Known Member

    4,125
    429
    83
    May 31, 2014
    Ratings:
    +841
    Local Time:
    5:14 PM
    Nginx-1.29.x
    MariaDB 10.6.x
    So the check routine i will auto detect my custom config entry for example:

    and will never restart Nginx to adjust this value?
     
  3. eva2000

    eva2000 Administrator Staff Member

    58,904
    12,490
    113
    May 24, 2014
    Brisbane, Australia
    Ratings:
    +19,122
    Local Time:
    12:14 AM
    Nginx 1.31.x
    MariaDB 10.x/11.4+/12.3+
    no the nginxlargefile_fix function will check existing client_max_body_size in nginx.conf
    • If largest file detected is greater than that existing client_max_body_size set size and less than 5GB threshold, the centmin mod will auto tune and nginx restart. The CLIENTMAXBODYSIZEKB_THRESHOLD determines the largest size for client_max_body_size that centmin mod will auto tune for. So files greater than 5GB are ignored in largest file calculation
    • If largest file is less than existing client_max_body_size, centmin mod will not touch existing client_max_body_size or restart nginx