Welcome to Centmin Mod Community
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

    44,417
    10,144
    113
    May 24, 2014
    Brisbane, Australia
    Ratings:
    +15,692
    Local Time:
    11:31 AM
    Nginx 1.17.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
     
  2. eva2000

    eva2000 Administrator Staff Member

    44,417
    10,144
    113
    May 24, 2014
    Brisbane, Australia
    Ratings:
    +15,692
    Local Time:
    11:31 AM
    Nginx 1.17.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.
     
  3. Sunka

    Sunka Well-Known Member

    1,140
    312
    83
    Oct 31, 2015
    Pula, Croatia
    Ratings:
    +508
    Local Time:
    3:31 AM
    Nginx 1.17.9
    MariaDB 10.3.22
    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

    44,417
    10,144
    113
    May 24, 2014
    Brisbane, Australia
    Ratings:
    +15,692
    Local Time:
    11:31 AM
    Nginx 1.17.x
    MariaDB 5.5/10.x
    Yup
     
  5. Dnyan

    Dnyan Member

    92
    19
    8
    Sep 16, 2017
    Ratings:
    +25
    Local Time:
    7:01 AM
    1.17.8
    10.3.22
    I see 100K as default value, is it OK?