Join the community today
Become a Member

Beta Branch update in/cpcheck total revision of nginxlarge_fix function

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

  1. eva2000

    eva2000 Administrator Staff Member

    30,196
    6,789
    113
    May 24, 2014
    Brisbane, Australia
    Ratings:
    +10,144
    Local Time:
    7:34 PM
    Nginx 1.13.x
    MariaDB 5.5
    update in/cpcheck total revision of nginxlarge_fix function

    - change client_max_body_size auto size configuration from auto change when detect largest file in /home/nginx/domains/*/public is greater than 200 MB to smarter function which calculates existing client_max_body_size directive value in /usr/local/nginx/conf/nginx.conf and then searches max 4 levels in /home/nginx/domains/*/public to find largest file type size. Then compare largest file size to existing client_max_body_size directive value in /usr/local/nginx/conf/nginx.conf and only if largest file size is greater than existing existing client_max_body_size directive value, will centmin mod auto tune the client_max_body_size option. So if you already manually set client_max_body_size to 1024m and largest file found is only 100m, then centmin mod will skip auto tuning client_max_body_size. If the largest file found is 1500m, then centmin mod will automatically adjust client_max_body_size in nginx.conf to accomodate that size when you next run centmin.sh menu.

    Continue reading...

    123.09beta01 branch
     
  2. eva2000

    eva2000 Administrator Staff Member

    30,196
    6,789
    113
    May 24, 2014
    Brisbane, Australia
    Ratings:
    +10,144
    Local Time:
    7:34 PM
    Nginx 1.13.x
    MariaDB 5.5
    Module ngx_http_core_module
    This setting limits the largest file nginx can serve. Centmin Mod throughout it's development have an evolving value for this starting with 10m = 10 megabytes instead of default 1m. Then that was raised to 50m and now 200m as of yesterday.

    The above function tries to automatically configure the value based on largest file size detected in your domain's web root directories /public (/home/nginx/domains/*/public) when you run centmin.sh menu.