Welcome to Centmin Mod Community
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

    49,587
    11,382
    113
    May 24, 2014
    Brisbane, Australia
    Ratings:
    +17,686
    Local Time:
    12:34 PM
    Nginx 1.21.x
    MariaDB 10.x
    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 Premium Member Premium Member

    3,993
    417
    83
    May 31, 2014
    Ratings:
    +807
    Local Time:
    4:34 AM
    Nginx-1.17.x
    MariaDB 10.3.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

    49,587
    11,382
    113
    May 24, 2014
    Brisbane, Australia
    Ratings:
    +17,686
    Local Time:
    12:34 PM
    Nginx 1.21.x
    MariaDB 10.x
    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