Want more timely Centmin Mod News Updates?
Become a Member

Nginx Digest Auth?

Discussion in 'Nginx, PHP-FPM & MariaDB MySQL' started by Liam W, Feb 7, 2015.

  1. Liam W

    Liam W Member

    62
    17
    8
    Jun 26, 2014
    United Kingdom
    Ratings:
    +22
    Local Time:
    6:59 AM
    nginx
    10.3.x
    I used digest auth for my admin panel on my other sites, however looking at Google Nginx requires an extra module to support digest. Does Centmin come with this installed, and if not how do I make it add it in?

    (I am using basic auth for now, however if it is possible to use digest I would like to :))

    Liam

     
    Last edited: Feb 8, 2015
  2. eva2000

    eva2000 Administrator Staff Member

    53,212
    12,113
    113
    May 24, 2014
    Brisbane, Australia
    Ratings:
    +18,650
    Local Time:
    3:59 PM
    Nginx 1.27.x
    MariaDB 10.x/11.4+
    typing the command in SSH will show you what Centmin Mod Nginx is compiled with module wise.

    Code:
    nginx -V
    for Centmin Mod .07 stable
    for Centmin Mod .08 beta
    so no nginx http auth digest module is compiled in, but from what I see the nginx http auth digest module hasn't been updated in 3 yrs and only tested by the author and not production ready according to samizdatco/nginx-http-auth-digest · GitHub ? there's a more updated fork at atomx/nginx-http-auth-digest · GitHub which had last commit ~2 months ago though

    There's enough outstanding issues reported in the nginx auth digest issue tracker to be concerned ?

    As to compiling and added additional nginx modules to Centmin Mod Nginx, you can see 2 examples linked to at 123.08slowfs | Centmin Mod Community

    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
     
    Last edited: Feb 8, 2015
  3. Liam W

    Liam W Member

    62
    17
    8
    Jun 26, 2014
    United Kingdom
    Ratings:
    +22
    Local Time:
    6:59 AM
    nginx
    10.3.x
    Yeah, I looked at the last commit time and I though it would be best to not use it. Shame...

    Liam
     
  4. eva2000

    eva2000 Administrator Staff Member

    53,212
    12,113
    113
    May 24, 2014
    Brisbane, Australia
    Ratings:
    +18,650
    Local Time:
    3:59 PM
    Nginx 1.27.x
    MariaDB 10.x/11.4+
    Yeah it's a shame - there's alot of neat nginx modules out there that haven't been updated in years heh