nginx-autoinstall icon indicating copy to clipboard operation
nginx-autoinstall copied to clipboard

support add nginx modules

Open servicepipe opened this issue 2 years ago • 3 comments

Author, please add the ability to install these modules, they are very necessary for work https://github.com/masterzen/nginx-upload-progress-module https://github.com/nginx-clojure/nginx-access-plus https://github.com/C0nw0nk/Nginx-Lua-Anti-DDoS https://github.com/gabihodoroaga/nginx-ntlm-module https://github.com/vislee/ngx_http_waf_module https://github.com/nbs-system/naxsi https://github.com/GetPageSpeed/ngx_security_headers

servicepipe avatar Mar 24 '23 13:03 servicepipe

Hi, do you know if all these modules are still working as of today? Many modules have broken over time due to lack of support.

MaximeMichaud avatar Sep 05 '23 09:09 MaximeMichaud

On that list, there are two or three which sound promising and still seem to be maintained, while others haven't seen a commit in the past 4 years or more...

GwynethLlewelyn avatar Sep 10 '23 10:09 GwynethLlewelyn

Have a look here 9b69458 (#237)

  • Custom/dynamic modules can be loaded in NGINX_MODULES=
    • See NGINX 3rd Party Modules
    • Example: Download to /usr/local/src/nginx-custom-modules
    • Load the module with --add-module=/usr/local/src/nginx-custom-modules/module-name in NGINX_MODULES= like so:
  NGINX_MODULES="--add-module=/usr/local/src/nginx-custom-modules/module-name" \

Starting from NGINX 1.9.11, you can also compile modules as a dynamic module:

  NGINX_MODULES="--add-dynamic-module=/usr/local/src/nginx-custom-modules/module-name" \

Then you can explicitly load the module in your nginx.conf via the load_module directive, for example,

load_module /usr/local/src/nginx-custom-modules/module-name_module.so;

tmiland avatar Dec 25 '23 21:12 tmiland