Want to subscribe to topics you're interested in?
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

    39,199
    8,654
    113
    May 24, 2014
    Brisbane, Australia
    Ratings:
    +13,307
    Local Time:
    3:01 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

    39,199
    8,654
    113
    May 24, 2014
    Brisbane, Australia
    Ratings:
    +13,307
    Local Time:
    3:01 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

    1,097
    297
    83
    Oct 31, 2015
    Rijeka, Croatia
    Ratings:
    +478
    Local Time:
    7:01 PM
    Nginx 1.15.8
    MariaDB 10.3.12
    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

    39,199
    8,654
    113
    May 24, 2014
    Brisbane, Australia
    Ratings:
    +13,307
    Local Time:
    3:01 AM
    Nginx 1.15.x
    MariaDB 5.5/10.x
    Yup
     
    • Like Like x 1
..