Want more timely Centmin Mod News Updates?
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

    54,647
    12,230
    113
    May 24, 2014
    Brisbane, Australia
    Ratings:
    +18,799
    Local Time:
    6:31 PM
    Nginx 1.27.x
    MariaDB 10.x/11.4+
    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

    54,647
    12,230
    113
    May 24, 2014
    Brisbane, Australia
    Ratings:
    +18,799
    Local Time:
    6:31 PM
    Nginx 1.27.x
    MariaDB 10.x/11.4+
    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.