Join the community today
Become a Member

Beta Branch allow centmin mod to update nginx.conf setting defaults in 123.09beta01+

Discussion in 'Centmin Mod Github Commits' started by eva2000, Apr 15, 2017.

  1. eva2000

    eva2000 Administrator Staff Member

    35,992
    7,896
    113
    May 24, 2014
    Brisbane, Australia
    Ratings:
    +12,174
    Local Time:
    11:45 AM
    Nginx 1.15.x
    MariaDB 5.5/10.x
    allow centmin mod to update nginx.conf setting defaults in 123.09beta01+

    Add new variable NGINX_ALLOWOVERRIDE='y' to allow centmin mod to update nginx.conf setting defaults when the defaults are revised in later centmin mod releases as discussed at https://community.centminmod.com/posts/48266/. If you don't want centmin mod to auto update nginx.conf defaults when they are revised in future, you can set in persistent config file /etc/centminmod/custom_config.inc the variable to NGINX_ALLOWOVERRIDE='n'.

    Continue reading...

    123.09beta01 branch

     
    • Like Like x 1
  2. eva2000

    eva2000 Administrator Staff Member

    35,992
    7,896
    113
    May 24, 2014
    Brisbane, Australia
    Ratings:
    +12,174
    Local Time:
    11:45 AM
    Nginx 1.15.x
    MariaDB 5.5/10.x
    Example if nginx.conf worker_connections defaulted to 10000 at install time. But later I revise centmin mod new installs to default to worker_connections = 50000. The new default behaviour due to NGINX_ALLOWOVERRIDE='y' is for centmin mod to only auto update worker_connections to 50000 value if it detects existing value of 10000 (old default).

    If you had edited worker_connections from 10000 to 15000 yourself, then centmin mod won't auto update the value and leave it as 15000 - your custom value.
     
    • Like Like x 1
  3. Sunka

    Sunka Well-Known Member

    999
    275
    63
    Oct 31, 2015
    Rijeka, Croatia
    Ratings:
    +451
    Local Time:
    3:45 AM
    Nginx 1.15.0
    MariaDB 10.2.15
    So, default is NGINX_ALLOWOVERRIDE='y'

    Only if we do not need it we have to add NGINX_ALLOWOVERRIDE='n' in persistent config file /etc/centminmod/custom_config.inc
     
  4. eva2000

    eva2000 Administrator Staff Member

    35,992
    7,896
    113
    May 24, 2014
    Brisbane, Australia
    Ratings:
    +12,174
    Local Time:
    11:45 AM
    Nginx 1.15.x
    MariaDB 5.5/10.x
    Yup
     
    • Like Like x 1
..