Learn about Centmin Mod LEMP Stack today
Become a Member

Beta Branch add additional nginx dynamic module support for openresty modules

Discussion in 'Centmin Mod Github Commits' started by eva2000, May 20, 2016.

  1. eva2000

    eva2000 Administrator Staff Member

    55,182
    12,251
    113
    May 24, 2014
    Brisbane, Australia
    Ratings:
    +18,829
    Local Time:
    9:15 PM
    Nginx 1.27.x
    MariaDB 10.x/11.4+
    add additional nginx dynamic module support for openresty modules

    new dynamic module options added & defaults are disabled via = 'n', which you can enable via persistent config file setup at /etc/centminmod/custom_config.inc for the below variables.

    Code (Text):
    NGXDYNAMIC_SRCCACHE='y'
    NGXDYNAMIC_DEVELKIT='n'     # leave disabled as it requires lua nginx module as dynamic but it has a bug in lua nginx
    NGXDYNAMIC_MEMC='y'
    NGXDYNAMIC_REDISTWO='y'
    



    you should leave NGXDYNAMIC_DEVELKIT='n' for now as it depends on lua nginx module compiled as dynamic module but that has a bug https://github.com/openresty/lua-nginx-module/issues/715

    Continue reading...

    123.09beta01 branch
     
  2. eva2000

    eva2000 Administrator Staff Member

    55,182
    12,251
    113
    May 24, 2014
    Brisbane, Australia
    Ratings:
    +18,829
    Local Time:
    9:15 PM
    Nginx 1.27.x
    MariaDB 10.x/11.4+
    example with /etc/centminmod/custom_config.inc setup with the following
    Code (Text):
    NGXDYNAMIC_NGXPAGESPEED='y'
    NGINX_PAGESPEED='y'
    ORESTY_LUANGINX='y'
    NGXDYNAMIC_SRCCACHE='y'
    NGXDYNAMIC_DEVELKIT='n'
    NGXDYNAMIC_MEMC='y'
    NGXDYNAMIC_REDISTWO='y'
    NGXDYNAMIC_SETMISC='y'
    

    contents of /usr/local/nginx/conf/dynamic-modules.conf include file in nginx.conf
    Code (Text):
    load_module "modules/ngx_http_image_filter_module.so";
    load_module "modules/ngx_http_memc_module.so";
    load_module "modules/ngx_http_srcache_filter_module.so";
    load_module "modules/ngx_http_set_misc_module.so";
    load_module "modules/ngx_http_redis2_module.so";
    load_module "modules/ngx_pagespeed.so";
    load_module "modules/ngx_stream_module.so";
    

    Code (Text):
    dynamic module directory at /usr/local/nginx/modules
    total 38M
    drwxr-xr-x  2 root root 4.0K May 19 19:12 .
    drwxr-xr-x 10 root root  128 May 16 05:38 ..
    -rwxr-xr-x  1 root root 143K May 19 19:12 ngx_http_image_filter_module.so
    -rwxr-xr-x  1 root root 143K May 19 18:55 ngx_http_image_filter_module.so.old
    -rwxr-xr-x  1 root root 394K May 19 19:12 ngx_http_memc_module.so
    -rwxr-xr-x  1 root root 394K May 19 18:55 ngx_http_memc_module.so.old
    -rwxr-xr-x  1 root root 278K May 19 19:12 ngx_http_redis2_module.so
    -rwxr-xr-x  1 root root 278K May 19 18:55 ngx_http_redis2_module.so.old
    -rwxr-xr-x  1 root root 748K May 19 19:12 ngx_http_set_misc_module.so
    -rwxr-xr-x  1 root root 748K May 19 18:55 ngx_http_set_misc_module.so.old
    -rwxr-xr-x  1 root root 394K May 19 19:12 ngx_http_srcache_filter_module.so
    -rwxr-xr-x  1 root root 394K May 19 18:55 ngx_http_srcache_filter_module.so.old
    -rwxr-xr-x  1 root root  17M May 19 19:12 ngx_pagespeed.so
    -rwxr-xr-x  1 root root  17M May 19 18:55 ngx_pagespeed.so.old
    -rwxr-xr-x  1 root root 552K May 19 19:12 ngx_stream_module.so
    -rwxr-xr-x  1 root root 552K May 19 18:55 ngx_stream_module.so.old
    

     
  3. eva2000

    eva2000 Administrator Staff Member

    55,182
    12,251
    113
    May 24, 2014
    Brisbane, Australia
    Ratings:
    +18,829
    Local Time:
    9:15 PM
    Nginx 1.27.x
    MariaDB 10.x/11.4+
    full available nginx dynamic module enabling options you have access to in 123.09beta01

    these are their default values out of the box
    Code (Text):
    # Nginx Dynamic Module Switches
    NGXDYNAMIC_NJS='n'
    NGXDYNAMIC_XSLT='n'
    NGXDYNAMIC_PERL='n'
    NGXDYNAMIC_IMAGEFILTER='y'
    NGXDYNAMIC_GEOIP='n'
    NGXDYNAMIC_STREAM='y'
    NGXDYNAMIC_HEADERSMORE='n'
    NGXDYNAMIC_SETMISC='n'
    NGXDYNAMIC_ECHO='n'
    NGXDYNAMIC_LUA='n'          # leave disabled due to bug https://github.com/openresty/lua-nginx-module/issues/715
    NGXDYNAMIC_SRCCACHE='n'
    NGXDYNAMIC_DEVELKIT='n'     # leave disabled as it requires lua nginx module as dynamic but it has a bug in lua nginx
    NGXDYNAMIC_MEMC='n'
    NGXDYNAMIC_REDISTWO='n'
    NGXDYNAMIC_NGXPAGESPEED='n'
    NGXDYNAMIC_BROTLI='y'