Welcome to Centmin Mod Community
Become a Member

123.08slowfs

Discussion in 'Beta release code' started by pamamolf, Feb 2, 2015.

  1. pamamolf

    pamamolf Premium Member Premium Member

    4,074
    427
    83
    May 31, 2014
    Ratings:
    +833
    Local Time:
    9:15 PM
    Nginx-1.25.x
    MariaDB 10.3.x
    Hi


    Today i found this on Github and i want to ask for more info :)

    I was read long time ago a few negative comments about Nginx slowfs cache and i am wondering if now we can benefit from it and what George are you preparing? :)

    Thanks
     
    Last edited: Feb 2, 2015
  2. eva2000

    eva2000 Administrator Staff Member

    54,107
    12,179
    113
    May 24, 2014
    Brisbane, Australia
    Ratings:
    +18,738
    Local Time:
    5:15 AM
    Nginx 1.27.x
    MariaDB 10.x/11.4+
    If you read the branch README file it's just experimental test .08 beta build with slowfs nginx module support.

    Unfortunately, it failed testing as once ngx_slowfs_cache module was integrated, Nginx fails to start up with segmentation faults :( So no plans for it to be officially added to main 08 beta branch right now.

    Still it's a good example of how I added a new Nginx module to Centmin Mod with the options to disable or enable integration via variables in centmin.sh if you see the commit changes at add nginx slowfs module support to .08 beta · c02348c · centminmod/centminmod · GitHub :)

    Good example of how to extend and add additional Nginx modules to Centmin Mod Nginx's default configuration.
    1. add to centmin.sh 2 variables to turn on and off the Nginx module integration and to specify module version number
    2. add to inc/downloadlinks.inc 2 new variables to define the Nginx module's file name and download url
    3. add to inc/downloads.inc the actual wget download routine for Nginx module and file validation check for tarball to ensure it's a valid tarball gzipped file
    4. add to inc/nginx_configure.inc the variable for Nginx configure option which either be set or empty depending on variable added in step 1 centmin.sh to turn on or off the module integration
    5. add to inc/nginx_upgrade.inc checknginxmodules function the Nginx module's source tarball gzipped file to make sure it is downloaded to and exists in /svr-setup. If it doesn't exist, it will be downloaed. So Nginx upgrade feature in centmin.sh menu option 4 will update older or existing Centmin Mod Nginx servers with the newly added Nginx module
    Similar to example I posted at Nginx WebDAV & nginx-dav-ext-module support - Centmin Mod - Menu based Nginx installer for CentOS servers for example of how to add webdav nginx module support (which eventually added now).
     
    Last edited: Feb 2, 2015