Learn about Centmin Mod LEMP Stack 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

    55,374
    12,255
    113
    May 24, 2014
    Brisbane, Australia
    Ratings:
    +18,835
    Local Time:
    1:27 PM
    Nginx 1.27.x
    MariaDB 10.x/11.4+
    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,101
    428
    83
    May 31, 2014
    Ratings:
    +838
    Local Time:
    6:27 AM
    Nginx-1.26.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

    55,374
    12,255
    113
    May 24, 2014
    Brisbane, Australia
    Ratings:
    +18,835
    Local Time:
    1:27 PM
    Nginx 1.27.x
    MariaDB 10.x/11.4+
    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