Welcome to Centmin Mod Community
Become a Member

Master 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,606
    6,862
    113
    May 24, 2014
    Brisbane, Australia
    Ratings:
    +10,297
    Local Time:
    9:46 AM
    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...

    Centmin Mod Github Master branch

    Master branch is where most recent commits are made as at May 24, 2015.