Join the community today
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

    30,634
    6,862
    113
    May 24, 2014
    Brisbane, Australia
    Ratings:
    +10,308
    Local Time:
    1:47 PM
    Nginx 1.13.x
    MariaDB 5.5
    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

    2,778
    245
    63
    May 31, 2014
    Ratings:
    +437
    Local Time:
    5:47 AM
    Nginx-1.13.x
    MariaDB 10.1.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

    30,634
    6,862
    113
    May 24, 2014
    Brisbane, Australia
    Ratings:
    +10,308
    Local Time:
    1:47 PM
    Nginx 1.13.x
    MariaDB 5.5
    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
     
    • Informative Informative x 1