Welcome to Centmin Mod Community
Register Now

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

    30,152
    6,782
    113
    May 24, 2014
    Brisbane, Australia
    Ratings:
    +10,133
    Local Time:
    12:13 PM
    Nginx 1.13.x
    MariaDB 5.5
    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

    30,152
    6,782
    113
    May 24, 2014
    Brisbane, Australia
    Ratings:
    +10,133
    Local Time:
    12:13 PM
    Nginx 1.13.x
    MariaDB 5.5
    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 Active Member

    917
    240
    43
    Oct 31, 2015
    Rijeka, Croatia
    Ratings:
    +388
    Local Time:
    4:13 AM
    Nginx 1.13.3
    MariaDB 10.1.24
    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

    30,152
    6,782
    113
    May 24, 2014
    Brisbane, Australia
    Ratings:
    +10,133
    Local Time:
    12:13 PM
    Nginx 1.13.x
    MariaDB 5.5
    Yup
     
    • Like Like x 1